summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2018-03-20 22:02:57 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2018-03-20 22:02:57 +0000
commitf4ec803cacaa378dd9459c5f9492ef01336c066f (patch)
treefef18fe1e2218109447ca4f578922ae7aacb9925 /clang/lib/CodeGen/CodeGenModule.cpp
parent39b5367cba5d706ece4091cb33e850b68486b53a (diff)
downloadbcm5719-llvm-f4ec803cacaa378dd9459c5f9492ef01336c066f.tar.gz
bcm5719-llvm-f4ec803cacaa378dd9459c5f9492ef01336c066f.zip
Delete BuiltinCC. NFC.
It is always identical to RuntimeCC. llvm-svn: 328050
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 9558615c7af..53177d26407 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -123,7 +123,6 @@ CodeGenModule::CodeGenModule(ASTContext &C, const HeaderSearchOptions &HSO,
ASTAllocaAddressSpace = getTargetCodeGenInfo().getASTAllocaAddressSpace();
RuntimeCC = getTargetCodeGenInfo().getABIInfo().getRuntimeCC();
- BuiltinCC = getTargetCodeGenInfo().getABIInfo().getBuiltinCC();
if (LangOpts.ObjC1)
createObjCRuntime();
@@ -2646,7 +2645,7 @@ CodeGenModule::CreateBuiltinFunction(llvm::FunctionType *FTy, StringRef Name,
/*DontDefer=*/false, /*IsThunk=*/false, ExtraAttrs);
if (auto *F = dyn_cast<llvm::Function>(C))
if (F->empty())
- F->setCallingConv(getBuiltinCC());
+ F->setCallingConv(getRuntimeCC());
return C;
}
OpenPOWER on IntegriCloud