]> granicus.if.org Git - clang/commitdiff
Put back dead code that's used out-of-tree.
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 20 Oct 2015 07:50:21 +0000 (07:50 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 20 Oct 2015 07:50:21 +0000 (07:50 +0000)
Partially reverts r250418.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@250803 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenABITypes.cpp
lib/Tooling/Core/CMakeLists.txt
unittests/Tooling/CMakeLists.txt

index 022cbe70b3da457319e306c397f39b3a215fa355..85495eeaedf028b16ee55c30d92dbd1486360b1a 100644 (file)
@@ -36,3 +36,33 @@ CodeGenABITypes::CodeGenABITypes(ASTContext &C, llvm::Module &M,
 // Explicitly out-of-line because ~CodeGenModule() is private but
 // CodeGenABITypes.h is part of clang's API.
 CodeGenABITypes::~CodeGenABITypes() = default;
+
+const CGFunctionInfo &
+CodeGenABITypes::arrangeObjCMessageSendSignature(const ObjCMethodDecl *MD,
+                                                 QualType receiverType) {
+  return CGM->getTypes().arrangeObjCMessageSendSignature(MD, receiverType);
+}
+
+const CGFunctionInfo &
+CodeGenABITypes::arrangeFreeFunctionType(CanQual<FunctionProtoType> Ty) {
+  return CGM->getTypes().arrangeFreeFunctionType(Ty);
+}
+
+const CGFunctionInfo &
+CodeGenABITypes::arrangeFreeFunctionType(CanQual<FunctionNoProtoType> Ty) {
+  return CGM->getTypes().arrangeFreeFunctionType(Ty);
+}
+
+const CGFunctionInfo &
+CodeGenABITypes::arrangeCXXMethodType(const CXXRecordDecl *RD,
+                                      const FunctionProtoType *FTP) {
+  return CGM->getTypes().arrangeCXXMethodType(RD, FTP);
+}
+
+const CGFunctionInfo &CodeGenABITypes::arrangeFreeFunctionCall(
+    CanQualType returnType, ArrayRef<CanQualType> argTypes,
+    FunctionType::ExtInfo info, RequiredArgs args) {
+  return CGM->getTypes().arrangeLLVMFunctionInfo(
+      returnType, /*IsInstanceMethod=*/false, /*IsChainCall=*/false, argTypes,
+      info, args);
+}
index c8c75f95f3cbabdc1e93670c139d3be2d519aed7..d89b2e4578e3f5591106bf211d7316d01f7efd38 100644 (file)
@@ -1,6 +1,7 @@
 set(LLVM_LINK_COMPONENTS support)
 
 add_clang_library(clangToolingCore
+  Lookup.cpp
   Replacement.cpp
 
   LINK_LIBS
index 2ae3a3e31ed169ff68d8aad44b9992139ebc3c6d..33b2046ae928888cf8cd866752dc7b9e859842aa 100644 (file)
@@ -6,6 +6,7 @@ set(LLVM_LINK_COMPONENTS
 add_clang_unittest(ToolingTests
   CommentHandlerTest.cpp
   CompilationDatabaseTest.cpp
+  LookupTest.cpp
   ToolingTest.cpp
   RecursiveASTVisitorTest.cpp
   RecursiveASTVisitorTestCallVisitor.cpp