aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode/Reader/ReaderInternals.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-10-14 03:33:02 +0000
committerChris Lattner <sabre@nondot.org>2002-10-14 03:33:02 +0000
commitbbd4b303e3792d94239640a1075b66dedeaa37fe (patch)
treebe03c8082c70d35abe0db1e28becdf812225cb12 /lib/Bytecode/Reader/ReaderInternals.h
parent34048e2ace447e5bdbd386d599ce768e19e6b18b (diff)
There is no way to guarantee that constants are not forward referenced.
Handle forward referenced constants in a general way. This fixes bug: Assembler/2002-10-13-ConstantEncodingProblem.llx and allows the SPEC 197.parser benchmark to be built git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4161 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Reader/ReaderInternals.h')
-rw-r--r--lib/Bytecode/Reader/ReaderInternals.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Bytecode/Reader/ReaderInternals.h b/lib/Bytecode/Reader/ReaderInternals.h
index c156f515b8..8f65677821 100644
--- a/lib/Bytecode/Reader/ReaderInternals.h
+++ b/lib/Bytecode/Reader/ReaderInternals.h
@@ -108,6 +108,7 @@ private:
Value *getValue(const Type *Ty, unsigned num, bool Create = true);
const Type *getType(unsigned ID);
+ Constant *getConstantValue(const Type *Ty, unsigned num);
int insertValue(Value *D, std::vector<ValueList> &D); // -1 = Failure
bool postResolveValues(ValueTable &ValTab);