summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Reader/ReaderInternals.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-04-05 01:27:26 +0000
committerChris Lattner <sabre@nondot.org>2004-04-05 01:27:26 +0000
commit15701e84d138210e24c5c074837b87911be65009 (patch)
tree2419979e9c6e32dc47ed5472bb76acd6533e7bcb /llvm/lib/Bytecode/Reader/ReaderInternals.h
parent60cf133a8e963f235736fc64110f4784e55e1b0c (diff)
downloadbcm5719-llvm-15701e84d138210e24c5c074837b87911be65009.tar.gz
bcm5719-llvm-15701e84d138210e24c5c074837b87911be65009.zip
Implement support for a new LLVM 1.3 bytecode format, which uses uint's
to index into structure types and allows arbitrary 32- and 64-bit integer types to index into sequential types. llvm-svn: 12651
Diffstat (limited to 'llvm/lib/Bytecode/Reader/ReaderInternals.h')
-rw-r--r--llvm/lib/Bytecode/Reader/ReaderInternals.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Bytecode/Reader/ReaderInternals.h b/llvm/lib/Bytecode/Reader/ReaderInternals.h
index 86bf800ca6e..9e0ffc2c363 100644
--- a/llvm/lib/Bytecode/Reader/ReaderInternals.h
+++ b/llvm/lib/Bytecode/Reader/ReaderInternals.h
@@ -108,6 +108,13 @@ private:
// int/sbyte/etc.
bool hasExplicitPrimitiveZeros;
+ // Flags to control features specific the LLVM 1.2 and before (revision #1)
+
+ // LLVM 1.2 and earlier required that getelementptr structure indices were
+ // ubyte constants and that sequential type indices were longs.
+ bool hasRestrictedGEPTypes;
+
+
typedef std::vector<ValueList*> ValueTable;
ValueTable Values;
ValueTable ModuleValues;
OpenPOWER on IntegriCloud