aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/Mangle.cpp
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
commit48a83b5e7ae4051c7c11680ac00c1fa02d610a62 (patch)
tree67768c87edafe6ba7eb591e81184571540fd57de /lib/CodeGen/Mangle.cpp
parentaf3280fadbdab6305581955c973e1229970958eb (diff)
Remove unnecessary ASTContext parameters from isMain and isExternC
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81589 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/Mangle.cpp')
-rw-r--r--lib/CodeGen/Mangle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/Mangle.cpp b/lib/CodeGen/Mangle.cpp
index f9495b81b3..434d3c48fe 100644
--- a/lib/CodeGen/Mangle.cpp
+++ b/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.