aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-08-10 01:53:14 +0000
committerChris Lattner <sabre@nondot.org>2008-08-10 01:53:14 +0000
commitd9f6910f4ef37c0e8eeee2a01287d9572c3176ef (patch)
tree11cdacedc41a441b204a6a6d0092e65ba35a1c29 /lib/CodeGen/CGExpr.cpp
parent55d71f9f4cf5f123db5d6dcfd20f3a8d5699c226 (diff)
rename PreDefinedExpr -> PredefinedExpr
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54605 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
-rw-r--r--lib/CodeGen/CGExpr.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp
index 7c5feb169b..091001e734 100644
--- a/lib/CodeGen/CGExpr.cpp
+++ b/lib/CodeGen/CGExpr.cpp
@@ -104,8 +104,8 @@ LValue CodeGenFunction::EmitLValue(const Expr *E) {
case Expr::CallExprClass: return EmitCallExprLValue(cast<CallExpr>(E));
case Expr::DeclRefExprClass: return EmitDeclRefLValue(cast<DeclRefExpr>(E));
case Expr::ParenExprClass:return EmitLValue(cast<ParenExpr>(E)->getSubExpr());
- case Expr::PreDefinedExprClass:
- return EmitPreDefinedLValue(cast<PreDefinedExpr>(E));
+ case Expr::PredefinedExprClass:
+ return EmitPredefinedLValue(cast<PredefinedExpr>(E));
case Expr::StringLiteralClass:
return EmitStringLiteralLValue(cast<StringLiteral>(E));
@@ -507,7 +507,7 @@ LValue CodeGenFunction::EmitStringLiteralLValue(const StringLiteral *E) {
return LValue::MakeAddr(CGM.GetAddrOfConstantString(StringLiteral),0);
}
-LValue CodeGenFunction::EmitPreDefinedLValue(const PreDefinedExpr *E) {
+LValue CodeGenFunction::EmitPredefinedLValue(const PredefinedExpr *E) {
std::string FunctionName;
if(const FunctionDecl *FD = dyn_cast<FunctionDecl>(CurFuncDecl)) {
FunctionName = FD->getName();
@@ -520,13 +520,13 @@ LValue CodeGenFunction::EmitPreDefinedLValue(const PreDefinedExpr *E) {
switch (E->getIdentType()) {
default:
assert(0 && "unknown pre-defined ident type");
- case PreDefinedExpr::Func:
+ case PredefinedExpr::Func:
GlobalVarName = "__func__.";
break;
- case PreDefinedExpr::Function:
+ case PredefinedExpr::Function:
GlobalVarName = "__FUNCTION__.";
break;
- case PreDefinedExpr::PrettyFunction:
+ case PredefinedExpr::PrettyFunction:
// FIXME:: Demangle C++ method names
GlobalVarName = "__PRETTY_FUNCTION__.";
break;