summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-09-12 00:17:51 +0000
committerDouglas Gregor <dgregor@apple.com>2009-09-12 00:17:51 +0000
commit16618f2157100d72e59301892ab035911963d1ee (patch)
treeb11125ebc39e59427bc21e9a9fbc150fccb990ac /clang/lib/CodeGen
parente2350a3b974cd2d8315ad80192558463a85b24af (diff)
downloadbcm5719-llvm-16618f2157100d72e59301892ab035911963d1ee.tar.gz
bcm5719-llvm-16618f2157100d72e59301892ab035911963d1ee.zip
Remove unnecessary ASTContext parameters from isMain and isExternC
llvm-svn: 81589
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp2
-rw-r--r--clang/lib/CodeGen/Mangle.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 00182113f84..ae7a8b1dcb4 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -561,7 +561,7 @@ void CodeGenModule::EmitGlobal(GlobalDecl GD) {
// In C++, if this is marked "extern", defer code generation.
if (getLangOptions().CPlusPlus && !VD->getInit() &&
(VD->getStorageClass() == VarDecl::Extern ||
- VD->isExternC(getContext())))
+ VD->isExternC()))
return;
// In C, if this isn't a definition, defer code generation.
diff --git a/clang/lib/CodeGen/Mangle.cpp b/clang/lib/CodeGen/Mangle.cpp
index f9495b81b32..434d3c48fef 100644
--- a/clang/lib/CodeGen/Mangle.cpp
+++ b/clang/lib/CodeGen/Mangle.cpp
@@ -99,7 +99,7 @@ bool CXXNameMangler::mangleFunctionDecl(const FunctionDecl *FD) {
// (always).
if (!FD->hasAttr<OverloadableAttr>()) {
// C functions are not mangled, and "main" is never mangled.
- if (!Context.getLangOptions().CPlusPlus || FD->isMain(Context))
+ if (!Context.getLangOptions().CPlusPlus || FD->isMain())
return false;
// No mangling in an "implicit extern C" header.
OpenPOWER on IntegriCloud