aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/CppBackend/TargetInfo
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/CppBackend/TargetInfo')
-rw-r--r--lib/Target/CppBackend/TargetInfo/CMakeLists.txt2
-rw-r--r--lib/Target/CppBackend/TargetInfo/CppBackendTargetInfo.cpp7
-rw-r--r--lib/Target/CppBackend/TargetInfo/LLVMBuild.txt2
3 files changed, 5 insertions, 6 deletions
diff --git a/lib/Target/CppBackend/TargetInfo/CMakeLists.txt b/lib/Target/CppBackend/TargetInfo/CMakeLists.txt
index f82d72e378cb..d86446f6bc02 100644
--- a/lib/Target/CppBackend/TargetInfo/CMakeLists.txt
+++ b/lib/Target/CppBackend/TargetInfo/CMakeLists.txt
@@ -1,5 +1,3 @@
-include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. )
-
add_llvm_library(LLVMCppBackendInfo
CppBackendTargetInfo.cpp
)
diff --git a/lib/Target/CppBackend/TargetInfo/CppBackendTargetInfo.cpp b/lib/Target/CppBackend/TargetInfo/CppBackendTargetInfo.cpp
index 1ca74a4895c4..096dc7350db0 100644
--- a/lib/Target/CppBackend/TargetInfo/CppBackendTargetInfo.cpp
+++ b/lib/Target/CppBackend/TargetInfo/CppBackendTargetInfo.cpp
@@ -14,9 +14,10 @@ using namespace llvm;
Target llvm::TheCppBackendTarget;
-static unsigned CppBackend_TripleMatchQuality(const std::string &TT) {
- // This class always works, but shouldn't be the default in most cases.
- return 1;
+static bool CppBackend_TripleMatchQuality(Triple::ArchType Arch) {
+ // This backend doesn't correspond to any architecture. It must be explicitly
+ // selected with -march.
+ return false;
}
extern "C" void LLVMInitializeCppBackendTargetInfo() {
diff --git a/lib/Target/CppBackend/TargetInfo/LLVMBuild.txt b/lib/Target/CppBackend/TargetInfo/LLVMBuild.txt
index d4dfc3ef0406..9c186a52f4fa 100644
--- a/lib/Target/CppBackend/TargetInfo/LLVMBuild.txt
+++ b/lib/Target/CppBackend/TargetInfo/LLVMBuild.txt
@@ -19,5 +19,5 @@
type = Library
name = CppBackendInfo
parent = CppBackend
-required_libraries = MC Support Target
+required_libraries = Support
add_to_library_groups = CppBackend