summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprConstant.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-08-21 03:01:12 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-08-21 03:01:12 +0000
commitb1d94a98dda5bccecd54b2a5254f64e450dd7189 (patch)
tree57e1bcdb5802378ab19646f0346e714cf98e993e /clang/lib/CodeGen/CGExprConstant.cpp
parent93b00a98a324b7b6debe03f71b741d094fe05d64 (diff)
downloadbcm5719-llvm-b1d94a98dda5bccecd54b2a5254f64e450dd7189.tar.gz
bcm5719-llvm-b1d94a98dda5bccecd54b2a5254f64e450dd7189.zip
IRgen: Eliminate EmitPredefinedFunctionName(), it doesn't need to be factored out.
llvm-svn: 111715
Diffstat (limited to 'clang/lib/CodeGen/CGExprConstant.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprConstant.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprConstant.cpp b/clang/lib/CodeGen/CGExprConstant.cpp
index 61d4ac26cf3..946a694b76f 100644
--- a/clang/lib/CodeGen/CGExprConstant.cpp
+++ b/clang/lib/CodeGen/CGExprConstant.cpp
@@ -822,7 +822,7 @@ public:
case Expr::PredefinedExprClass: {
unsigned Type = cast<PredefinedExpr>(E)->getIdentType();
if (CGF) {
- LValue Res = CGF->EmitPredefinedFunctionName(Type);
+ LValue Res = CGF->EmitPredefinedLValue(cast<PredefinedExpr>(E));
return cast<llvm::Constant>(Res.getAddress());
} else if (Type == PredefinedExpr::PrettyFunction) {
return CGM.GetAddrOfConstantCString("top level", ".tmp");
OpenPOWER on IntegriCloud