summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Core.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-24 23:12:02 +0000
committerOwen Anderson <resistor@mac.com>2009-07-24 23:12:02 +0000
commitedb4a703255623eef2c56e644f9fdc04cadd7336 (patch)
tree0ef285683687c1c927ff68af16d77b3645e0d66d /llvm/lib/VMCore/Core.cpp
parentfcd54f73bf465f9fa7a820344642f848b5285a3b (diff)
downloadbcm5719-llvm-edb4a703255623eef2c56e644f9fdc04cadd7336.tar.gz
bcm5719-llvm-edb4a703255623eef2c56e644f9fdc04cadd7336.zip
Revert the ConstantInt constructors back to their 2.5 forms where possible, thanks to contexts-on-types. More to come.
llvm-svn: 77011
Diffstat (limited to 'llvm/lib/VMCore/Core.cpp')
-rw-r--r--llvm/lib/VMCore/Core.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/Core.cpp b/llvm/lib/VMCore/Core.cpp
index 55707b029b3..c35623e0ed1 100644
--- a/llvm/lib/VMCore/Core.cpp
+++ b/llvm/lib/VMCore/Core.cpp
@@ -365,8 +365,7 @@ LLVMValueRef LLVMConstPointerNull(LLVMTypeRef Ty) {
LLVMValueRef LLVMConstInt(LLVMTypeRef IntTy, unsigned long long N,
int SignExtend) {
- return wrap(getGlobalContext().getConstantInt(unwrap<IntegerType>(IntTy), N,
- SignExtend != 0));
+ return wrap(ConstantInt::get(unwrap<IntegerType>(IntTy), N, SignExtend != 0));
}
static const fltSemantics &SemanticsForType(Type *Ty) {
OpenPOWER on IntegriCloud