Move most targets TargetMachine constructor to only taking a target triple.
- The C, C++, MSIL, and Mips backends still need the module.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77927 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp
index b552e04..69d9ee9 100644
--- a/lib/Target/CppBackend/CPPBackend.cpp
+++ b/lib/Target/CppBackend/CPPBackend.cpp
@@ -74,7 +74,7 @@
extern "C" void LLVMInitializeCppBackendTarget() {
// Register the target.
- RegisterTargetMachine<CPPTargetMachine> X(TheCppBackendTarget);
+ RegisterTargetMachineDeprecated<CPPTargetMachine> X(TheCppBackendTarget);
}
namespace {