summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-07-04 11:44:27 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-07-04 11:44:27 +0000
commit3cdb4e88e59646c8899676d9124331ce0884fefc (patch)
tree7cc05eeab127b271c708989124975ab1833e399e /llvm/lib/Bytecode
parent88f3e0731e932db48c6552fa5f145d020dee227e (diff)
downloadbcm5719-llvm-3cdb4e88e59646c8899676d9124331ce0884fefc.tar.gz
bcm5719-llvm-3cdb4e88e59646c8899676d9124331ce0884fefc.zip
Add new methods outputTypes and outputCompactionTypes for handling Types
separately from Values. This needed for bug 122. llvm-svn: 14609
Diffstat (limited to 'llvm/lib/Bytecode')
-rw-r--r--llvm/lib/Bytecode/Writer/WriterInternals.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Bytecode/Writer/WriterInternals.h b/llvm/lib/Bytecode/Writer/WriterInternals.h
index e51ec6365dd..997c97d2603 100644
--- a/llvm/lib/Bytecode/Writer/WriterInternals.h
+++ b/llvm/lib/Bytecode/Writer/WriterInternals.h
@@ -19,10 +19,10 @@
#ifndef LLVM_LIB_BYTECODE_WRITER_WRITERINTERNALS_H
#define LLVM_LIB_BYTECODE_WRITER_WRITERINTERNALS_H
-#include "llvm/Bytecode/Writer.h"
#include "WriterPrimitives.h"
+#include "SlotCalculator.h"
+#include "llvm/Bytecode/Writer.h"
#include "llvm/Bytecode/Format.h"
-#include "llvm/Analysis/SlotCalculator.h"
#include "llvm/Instruction.h"
namespace llvm {
@@ -38,6 +38,7 @@ private:
void outputConstantStrings();
void outputFunction(const Function *F);
void outputCompactionTable();
+ void outputCompactionTypes(unsigned StartNo);
void outputCompactionTablePlane(unsigned PlaneNo,
const std::vector<const Value*> &TypePlane,
unsigned StartNo);
@@ -46,6 +47,7 @@ private:
void outputModuleInfoBlock(const Module *C);
void outputSymbolTable(const SymbolTable &ST);
+ void outputTypes(unsigned StartNo);
void outputConstantsInPlane(const std::vector<const Value*> &Plane,
unsigned StartNo);
void outputConstant(const Constant *CPV);
OpenPOWER on IntegriCloud