summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-31 20:28:14 +0000
committerOwen Anderson <resistor@mac.com>2009-07-31 20:28:14 +0000
commit5a1acd99126d8b867aef4a785aae635fb98b6c08 (patch)
tree4a7049e4b83ac61c1b374bbb168e359ff4d5268a /llvm/lib/Bitcode
parentef3ef7f645cd4f070e426ed781f0104bcffb45d7 (diff)
downloadbcm5719-llvm-5a1acd99126d8b867aef4a785aae635fb98b6c08.tar.gz
bcm5719-llvm-5a1acd99126d8b867aef4a785aae635fb98b6c08.zip
Move a few more APIs back to 2.5 forms. The only remaining ones left to change back are
metadata related, which I'm waiting on to avoid conflicting with Devang. llvm-svn: 77721
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index a58e68f1837..40920d87e9a 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -898,7 +898,7 @@ bool BitcodeReader::ParseConstants() {
CurTy = TypeList[Record[0]];
continue; // Skip the ValueList manipulation.
case bitc::CST_CODE_NULL: // NULL
- V = Context.getNullValue(CurTy);
+ V = Constant::getNullValue(CurTy);
break;
case bitc::CST_CODE_INTEGER: // INTEGER: [intval]
if (!isa<IntegerType>(CurTy) || Record.empty())
@@ -993,7 +993,7 @@ bool BitcodeReader::ParseConstants() {
std::vector<Constant*> Elts;
for (unsigned i = 0; i != Size; ++i)
Elts.push_back(ConstantInt::get(EltTy, Record[i]));
- Elts.push_back(Context.getNullValue(EltTy));
+ Elts.push_back(Constant::getNullValue(EltTy));
V = ConstantArray::get(ATy, Elts);
break;
}
OpenPOWER on IntegriCloud