summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Reader/Reader.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-09 06:14:26 +0000
committerChris Lattner <sabre@nondot.org>2003-10-09 06:14:26 +0000
commit1e8addf890e13cd83f800902c40cd36f3ca462de (patch)
tree102a6cd47a24a42489cc00a7de3b0b5f7daed601 /llvm/lib/Bytecode/Reader/Reader.cpp
parent42dce1e365aafdd1c6543112632e20a858610577 (diff)
downloadbcm5719-llvm-1e8addf890e13cd83f800902c40cd36f3ca462de.tar.gz
bcm5719-llvm-1e8addf890e13cd83f800902c40cd36f3ca462de.zip
Eliminate the instruction placeholder. Simplify a bunch of code.
This results in no significant speedup, but does provide simpler code llvm-svn: 8980
Diffstat (limited to 'llvm/lib/Bytecode/Reader/Reader.cpp')
-rw-r--r--llvm/lib/Bytecode/Reader/Reader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bytecode/Reader/Reader.cpp b/llvm/lib/Bytecode/Reader/Reader.cpp
index 714d813a685..4011af7b049 100644
--- a/llvm/lib/Bytecode/Reader/Reader.cpp
+++ b/llvm/lib/Bytecode/Reader/Reader.cpp
@@ -134,7 +134,7 @@ Value *BytecodeParser::getValue(unsigned type, unsigned oNum, bool Create) {
if (I != ForwardReferences.end() && I->first == KeyValue)
return I->second; // We have already created this placeholder
- Value *Val = new ValPHolder(getType(type), oNum);
+ Value *Val = new Argument(getType(type));
ForwardReferences.insert(I, std::make_pair(KeyValue, Val));
return Val;
}
OpenPOWER on IntegriCloud