diff options
author | Chris Lattner <sabre@nondot.org> | 2002-10-14 03:33:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-10-14 03:33:02 +0000 |
commit | 2862d2ec711cb77a954f313f11e280280691c895 (patch) | |
tree | 6932a5cbe8738c79ab55e80108515b4718aa0758 /llvm/lib/Bytecode/Reader/ReaderInternals.h | |
parent | 163b890dfb7811e2ff473d548570823c63d4d598 (diff) | |
download | bcm5719-llvm-2862d2ec711cb77a954f313f11e280280691c895.tar.gz bcm5719-llvm-2862d2ec711cb77a954f313f11e280280691c895.zip |
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
llvm-svn: 4161
Diffstat (limited to 'llvm/lib/Bytecode/Reader/ReaderInternals.h')
-rw-r--r-- | llvm/lib/Bytecode/Reader/ReaderInternals.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Bytecode/Reader/ReaderInternals.h b/llvm/lib/Bytecode/Reader/ReaderInternals.h index c156f515b88..8f656778219 100644 --- a/llvm/lib/Bytecode/Reader/ReaderInternals.h +++ b/llvm/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); |