commit | f16f3476a2faf2bab03ad54eedaf255b49207392 | [log] [tgz] |
---|---|---|
author | Evan Cheng <evan.cheng@apple.com> | Mon Jul 25 21:44:12 2011 +0000 |
committer | Evan Cheng <evan.cheng@apple.com> | Mon Jul 25 21:44:12 2011 +0000 |
tree | 4ea23226b31b540cd758cd9270f52b7b12314b4d | |
parent | 63f8dde4827c801499a9887c7a10ba43dac9df08 [diff] |
Move CBackend and CppBackend MC initialization to TargetInfo. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135982 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index f24dd46..18a27d2 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp
@@ -64,8 +64,6 @@ RegisterTargetMachine<CTargetMachine> X(TheCBackendTarget); } -extern "C" void LLVMInitializeCBackendTargetMC() {} - namespace { class CBEMCAsmInfo : public MCAsmInfo { public:
diff --git a/lib/Target/CBackend/TargetInfo/CBackendTargetInfo.cpp b/lib/Target/CBackend/TargetInfo/CBackendTargetInfo.cpp index f7e8ff2..f581a6c 100644 --- a/lib/Target/CBackend/TargetInfo/CBackendTargetInfo.cpp +++ b/lib/Target/CBackend/TargetInfo/CBackendTargetInfo.cpp
@@ -17,3 +17,5 @@ extern "C" void LLVMInitializeCBackendTargetInfo() { RegisterTarget<> X(TheCBackendTarget, "c", "C backend"); } + +extern "C" void LLVMInitializeCBackendTargetMC() {}