diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-05-26 07:37:11 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-05-26 07:37:11 +0000 |
commit | 798ff64328c3f167a58e4dbfa515c04e1f49f664 (patch) | |
tree | cdbeffd6577c8d996544a00411d7b06abe8bdc07 /include/llvm | |
parent | 0d1b77e2824115d97f8392c3f4ec257b27ebbd7a (diff) | |
download | llvm-798ff64328c3f167a58e4dbfa515c04e1f49f664.tar.gz llvm-798ff64328c3f167a58e4dbfa515c04e1f49f664.tar.bz2 llvm-798ff64328c3f167a58e4dbfa515c04e1f49f664.tar.xz |
Part of bug 122:
This change removes the BuildBytecodeInfo flag from the SlotCalculator
class. This flag was needed to distinguish between the Bytecode/Writer
and the AsmWriter. Now that AsmWriter doesn't use SlotCalculator, we can
remove this flag and simplify some code. Also, some minor name changes
to CachedWriter.h needed to be committed (missed in previous commit).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13785 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Analysis/SlotCalculator.h | 10 | ||||
-rw-r--r-- | include/llvm/Assembly/CachedWriter.h | 7 |
2 files changed, 7 insertions, 10 deletions
diff --git a/include/llvm/Analysis/SlotCalculator.h b/include/llvm/Analysis/SlotCalculator.h index c371a0e5ac..42f2297c8e 100644 --- a/include/llvm/Analysis/SlotCalculator.h +++ b/include/llvm/Analysis/SlotCalculator.h @@ -34,12 +34,6 @@ class ConstantArray; class SlotCalculator { const Module *TheModule; - /// BuildBytecodeInfo - If true, this is the creating information for the - /// bytecode writer, if false, we are building information for the assembly - /// emitter. The assembly emitter doesn't need named objects numbered, among - /// other differences. - bool BuildBytecodeInfo; - typedef std::vector<const Value*> TypePlane; std::vector<TypePlane> Table; std::map<const Value*, unsigned> NodeMap; @@ -68,9 +62,9 @@ class SlotCalculator { SlotCalculator(const SlotCalculator &); // DO NOT IMPLEMENT void operator=(const SlotCalculator &); // DO NOT IMPLEMENT public: - SlotCalculator(const Module *M, bool BuildBytecodeInfo); + SlotCalculator(const Module *M ); // Start out in incorp state - SlotCalculator(const Function *F, bool BuildBytecodeInfo); + SlotCalculator(const Function *F ); /// getSlot - Return the slot number of the specified value in it's type /// plane. This returns < 0 on error! diff --git a/include/llvm/Assembly/CachedWriter.h b/include/llvm/Assembly/CachedWriter.h index 27193e7c8d..b3f572feb3 100644 --- a/include/llvm/Assembly/CachedWriter.h +++ b/include/llvm/Assembly/CachedWriter.h @@ -20,16 +20,19 @@ #include "llvm/Value.h" #include <iostream> +namespace { +class SlotMachine; // Internal private class +} + namespace llvm { class Module; class PointerType; -class SlotCalculator; class AssemblyWriter; // Internal private class class CachedWriter { AssemblyWriter *AW; - SlotCalculator *SC; + SlotMachine *SC; bool SymbolicTypes; std::ostream *Out; |