[cfe-commits] r85453 - in /cfe/trunk/lib: AST/ExprConstant.cpp CodeGen/CodeGenFunction.h
Chris Lattner
sabre at nondot.org
Wed Oct 28 17:22:00 PDT 2009
Author: lattner
Date: Wed Oct 28 19:22:00 2009
New Revision: 85453
URL: http://llvm.org/viewvc/llvm-project?rev=85453&view=rev
Log:
optimize out some ifdefs.
Modified:
cfe/trunk/lib/AST/ExprConstant.cpp
cfe/trunk/lib/CodeGen/CodeGenFunction.h
Modified: cfe/trunk/lib/AST/ExprConstant.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ExprConstant.cpp?rev=85453&r1=85452&r2=85453&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ExprConstant.cpp (original)
+++ cfe/trunk/lib/AST/ExprConstant.cpp Wed Oct 28 19:22:00 2009
@@ -58,12 +58,8 @@
static bool EvaluateLValue(const Expr *E, APValue &Result, EvalInfo &Info);
static bool EvaluatePointer(const Expr *E, APValue &Result, EvalInfo &Info);
static bool EvaluateInteger(const Expr *E, APSInt &Result, EvalInfo &Info);
-#ifndef USEINDIRECTBRANCH
-static bool EvaluateIntegerOrLValue(const Expr *E, APValue &Result, EvalInfo &Info);
-#else
static bool EvaluateIntegerOrLValue(const Expr *E, APValue &Result,
EvalInfo &Info);
-#endif
static bool EvaluateFloat(const Expr *E, APFloat &Result, EvalInfo &Info);
static bool EvaluateComplex(const Expr *E, APValue &Result, EvalInfo &Info);
Modified: cfe/trunk/lib/CodeGen/CodeGenFunction.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenFunction.h?rev=85453&r1=85452&r2=85453&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenFunction.h (original)
+++ cfe/trunk/lib/CodeGen/CodeGenFunction.h Wed Oct 28 19:22:00 2009
@@ -183,11 +183,7 @@
void PopConditionalTempDestruction();
private:
-#ifndef USEINDIRECTBRANCH
- CGDebugInfo* DebugInfo;
-#else
CGDebugInfo *DebugInfo;
-#endif
#ifndef USEINDIRECTBRANCH
/// LabelIDs - Track arbitrary ids assigned to labels for use in implementing
More information about the cfe-commits
mailing list