//===- OptEmitter.cpp - Helper for emitting options.----------- -----------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "OptEmitter.h" #include "llvm/ADT/Twine.h" #include "llvm/TableGen/Error.h" #include "llvm/TableGen/Record.h" #include <cctype> #include <cstring> namespace llvm { // Ordering on Info. The logic should match with the consumer-side function in // llvm/Option/OptTable.h. // FIXME: Make this take StringRefs instead of null terminated strings to // simplify callers. static int StrCmpOptionName(const char *A, const char *B) { … } int CompareOptionRecords(Record *const *Av, Record *const *Bv) { … } } // namespace llvm