llvm.org GIT mirror llvm / 895820d
Naming fix: LLVMCCConfigurationEmitter -> LLVMCConfigurationEmitter. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50754 91177308-0d34-0410-b5e6-96231b3b80d8 Mikhail Glushenkov 11 years ago
4 changed file(s) with 14 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
1919 # The degree of horrorshowness in that file is too much for me atm.
2020 $(ObjDir)/AutoGenerated.inc.tmp: $(TOOLS_SOURCE) $(ObjDir)/.dir
2121 $(Echo) "Building LLVMCC configuration library with tblgen"
22 $(Verb) $(TableGen) -gen-llvmcc -o $(call SYSPATH, $@) $<
22 $(Verb) $(TableGen) -gen-llvmc -o $(call SYSPATH, $@) $<
2323
2424 AutoGenerated.inc : $(ObjDir)/AutoGenerated.inc.tmp
2525 $(Verb) $(CMP) -s $@ $< || $(CP) $< $@
2626
2727 using namespace llvm;
2828
29 //namespace {
29 namespace {
3030
3131 //===----------------------------------------------------------------------===//
3232 /// Typedefs
10791079
10801080
10811081 // End of anonymous namespace
1082 //}
1082 }
10831083
10841084 // Back-end entry point
1085 void LLVMCCConfigurationEmitter::run (std::ostream &O) {
1085 void LLVMCConfigurationEmitter::run (std::ostream &O) {
10861086 // Emit file header
10871087 EmitSourceFileHeader("LLVMC Configuration Library", O);
10881088
1010 //
1111 //===----------------------------------------------------------------------===//
1212
13 #ifndef LLVMCCCONF_EMITTER_H
14 #define LLVMCCCONF_EMITTER_H
13 #ifndef LLVM_UTILS_TABLEGEN_LLVMCCONF_EMITTER_H
14 #define LLVM_UTILS_TABLEGEN_LLVMCCONF_EMITTER_H
1515
1616 #include "TableGenBackend.h"
1717
1818 namespace llvm {
19 class LLVMCCConfigurationEmitter : public TableGenBackend {
19 class LLVMCConfigurationEmitter : public TableGenBackend {
2020 RecordKeeper &Records;
2121 public:
22 explicit LLVMCCConfigurationEmitter(RecordKeeper &R) : Records(R) {}
22 explicit LLVMCConfigurationEmitter(RecordKeeper &R) : Records(R) {}
2323
2424 // run - Output the asmwriter, returning true on failure.
2525 void run(std::ostream &o);
2626 };
2727 }
2828
29 #endif //LLVMCCCONF_EMITTER_H
29 #endif //LLVM_UTILS_TABLEGEN_LLVMCCONF_EMITTER_H
4646 GenDAGISel,
4747 GenSubtarget,
4848 GenIntrinsic,
49 GenLLVMCCConf,
49 GenLLVMCConf,
5050 PrintEnums
5151 };
5252
7777 "Generate subtarget enumerations"),
7878 clEnumValN(GenIntrinsic, "gen-intrinsic",
7979 "Generate intrinsic information"),
80 clEnumValN(GenLLVMCCConf, "gen-llvmcc",
81 "Generate LLVMCC configuration library"),
80 clEnumValN(GenLLVMCConf, "gen-llvmc",
81 "Generate LLVMC configuration library"),
8282 clEnumValN(PrintEnums, "print-enums",
8383 "Print enum values for a class"),
8484 clEnumValEnd));
182182 case GenIntrinsic:
183183 IntrinsicEmitter(Records).run(*Out);
184184 break;
185 case GenLLVMCCConf:
186 LLVMCCConfigurationEmitter(Records).run(*Out);
185 case GenLLVMCConf:
186 LLVMCConfigurationEmitter(Records).run(*Out);
187187 break;
188188 case PrintEnums:
189189 {