diff options
author | Chris Lattner <sabre@nondot.org> | 2002-04-28 19:55:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-04-28 19:55:58 +0000 |
commit | ca14237696a1b7453bbf90f511bd9f2b03254ae9 (patch) | |
tree | d176761686c4436643314719e1adb1406689a6a7 /llvm/lib/Bytecode/Writer/Writer.cpp | |
parent | aa77eab129a804b39b876fc42cb8477c53315bcc (diff) | |
download | bcm5719-llvm-ca14237696a1b7453bbf90f511bd9f2b03254ae9.tar.gz bcm5719-llvm-ca14237696a1b7453bbf90f511bd9f2b03254ae9.zip |
Split ConstantVals.h into Constant.h and Constants.h
llvm-svn: 2378
Diffstat (limited to 'llvm/lib/Bytecode/Writer/Writer.cpp')
-rw-r--r-- | llvm/lib/Bytecode/Writer/Writer.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Bytecode/Writer/Writer.cpp b/llvm/lib/Bytecode/Writer/Writer.cpp index 2f427770d90..145004b716d 100644 --- a/llvm/lib/Bytecode/Writer/Writer.cpp +++ b/llvm/lib/Bytecode/Writer/Writer.cpp @@ -24,7 +24,6 @@ #include "llvm/GlobalVariable.h" #include "llvm/Function.h" #include "llvm/BasicBlock.h" -#include "llvm/ConstantVals.h" #include "llvm/SymbolTable.h" #include "llvm/DerivedTypes.h" #include "Support/STLExtras.h" @@ -78,8 +77,8 @@ void BytecodeWriter::outputConstants(bool isFunction) { unsigned NC = ValNo; // Number of constants for (; NC < Plane.size() && - (isa<Constant>(Plane[NC]) || - isa<Type>(Plane[NC])); NC++) /*empty*/; + (isa<Constant>(Plane[NC]) || isa<Type>(Plane[NC])); NC++) + /*empty*/; NC -= ValNo; // Convert from index into count if (NC == 0) continue; // Skip empty type planes... @@ -125,7 +124,7 @@ void BytecodeWriter::outputModuleInfoBlock(const Module *M) { // If we have an initializer, output it now. if (GV->hasInitializer()) { - Slot = Table.getValSlot(GV->getInitializer()); + Slot = Table.getValSlot((Value*)GV->getInitializer()); assert(Slot != -1 && "No slot for global var initializer!"); output_vbr((unsigned)Slot, Out); } |