//===- LLVMCConfigurationEmitter.cpp - Generate LLVMC config --------------===////// The LLVM Compiler Infrastructure//// This file is distributed under the University of Illinois Open// Source License. See LICENSE.TXT for details.////===----------------------------------------------------------------------===////// This tablegen backend is responsible for emitting LLVMC configuration code.////===----------------------------------------------------------------------===//#include"LLVMCConfigurationEmitter.h"#include"Record.h"#include"llvm/ADT/IntrusiveRefCntPtr.h"#include"llvm/ADT/SmallVector.h"#include"llvm/ADT/StringExtras.h"#include"llvm/ADT/StringMap.h"#include"llvm/Support/Streams.h"#include<algorithm>#include<cassert>#include<functional>#include<string>usingnamespacellvm;namespace{//===----------------------------------------------------------------------===///// Typedefstypedefstd::vector<Record*>RecordVector;typedefstd::vector<std::string>StrVector;//===----------------------------------------------------------------------===///// Constants// Indentation strings.constchar*Indent1=" ";constchar*Indent2=" ";constchar*Indent3=" ";constchar*Indent4=" ";// Default help string.constchar*DefaultHelpString="NO HELP MESSAGE PROVIDED";// Name for the "sink" option