summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-04-26 19:19:15 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-04-26 19:19:15 +0000
commit1c4a175aefcdcf38230baa37dade6bbad3d53240 (patch)
tree9c4c377dbe49214d2205c495d58d6af2a6d612b2 /clang/lib/CodeGen/CGDebugInfo.cpp
parent5cdb8cc267d0820f724e8643b70c3bf74885c830 (diff)
downloadbcm5719-llvm-1c4a175aefcdcf38230baa37dade6bbad3d53240.tar.gz
bcm5719-llvm-1c4a175aefcdcf38230baa37dade6bbad3d53240.zip
Remove getIntegerConstantExprValue in favor of using EvaluateAsInt.
llvm-svn: 70145
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index a652ede1c1f..eeaa197cf3b 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -320,8 +320,7 @@ llvm::DIType CGDebugInfo::CreateType(const RecordType *Ty,
FieldSize = M->getContext().getTypeSize(FType);
Expr *BitWidth = Field->getBitWidth();
if (BitWidth)
- FieldSize =
- BitWidth->getIntegerConstantExprValue(M->getContext()).getZExtValue();
+ FieldSize = BitWidth->EvaluateAsInt(M->getContext()).getZExtValue();
FieldAlign = M->getContext().getTypeAlign(FType);
}
@@ -432,9 +431,8 @@ llvm::DIType CGDebugInfo::CreateType(const ObjCInterfaceType *Ty,
FieldSize = M->getContext().getTypeSize(FType);
Expr *BitWidth = Field->getBitWidth();
if (BitWidth)
- FieldSize =
- BitWidth->getIntegerConstantExprValue(M->getContext()).getZExtValue();
-
+ FieldSize = BitWidth->EvaluateAsInt(M->getContext()).getZExtValue();
+
FieldAlign = M->getContext().getTypeAlign(FType);
}
OpenPOWER on IntegriCloud