aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Module.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-25 18:57:27 +0000
committerChris Lattner <sabre@nondot.org>2006-01-25 18:57:27 +0000
commit863517aea0b06770c809396be985c1c4cc50d3c4 (patch)
treec39ef3d1eac212de36fbe51bb52a4308d559051d /include/llvm/Module.h
parentee4a76563a84839453588104e94d4891fc44d625 (diff)
Change inline asms to be uniqued like constants, not embedded in a Module.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25610 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Module.h')
-rw-r--r--include/llvm/Module.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/include/llvm/Module.h b/include/llvm/Module.h
index 917fd429d9..51f7838d97 100644
--- a/include/llvm/Module.h
+++ b/include/llvm/Module.h
@@ -21,7 +21,6 @@
#include "llvm/Function.h"
#include "llvm/GlobalVariable.h"
-#include "llvm/InlineAsm.h"
#include "llvm/ADT/SetVector.h"
#include "llvm/Support/DataTypes.h"
@@ -46,19 +45,11 @@ template<> struct ilist_traits<GlobalVariable>
static void destroySentinel(GlobalVariable *GV) { delete GV; }
static iplist<GlobalVariable> &getList(Module *M);
};
-template<> struct ilist_traits<InlineAsm>
-: public SymbolTableListTraits<InlineAsm, Module, Module> {
- // createSentinel is used to create a node that marks the end of the list.
- static InlineAsm *createSentinel();
- static void destroySentinel(InlineAsm *GV) { delete GV; }
- static iplist<InlineAsm> &getList(Module *M);
-};
class Module {
public:
typedef iplist<GlobalVariable> GlobalListType;
typedef iplist<Function> FunctionListType;
- typedef iplist<InlineAsm> InlineAsmListType;
typedef SetVector<std::string> LibraryListType;
// Global Variable iterators.
@@ -69,10 +60,6 @@ public:
typedef FunctionListType::iterator iterator;
typedef FunctionListType::const_iterator const_iterator;
- // Inline Asm iterators.
- typedef InlineAsmListType::iterator inlineasm_iterator;
- typedef InlineAsmListType::const_iterator const_inlineasm_iterator;
-
// Library list iterators.
typedef LibraryListType::const_iterator lib_iterator;
@@ -82,7 +69,6 @@ public:
private:
GlobalListType GlobalList; // The Global Variables in the module
FunctionListType FunctionList; // The Functions in the module
- InlineAsmListType InlineAsmList; // The inline asm objects in the module.
LibraryListType LibraryList; // The Libraries needed by the module
std::string GlobalScopeAsm; // Inline Asm at global scope.
SymbolTable *SymTab; // Symbol Table for the module
@@ -193,8 +179,6 @@ public:
GlobalListType &getGlobalList() { return GlobalList; }
const FunctionListType &getFunctionList() const { return FunctionList; }
FunctionListType &getFunctionList() { return FunctionList; }
- const InlineAsmListType &getInlineAsmList() const { return InlineAsmList; }
- InlineAsmListType &getInlineAsmList() { return InlineAsmList; }
/// getSymbolTable() - Get access to the symbol table for the module, where
/// global variables and functions are identified.
@@ -222,21 +206,6 @@ public:
size_t size() const { return FunctionList.size(); }
bool empty() const { return FunctionList.empty(); }
- // Inline Asm list interface
- inlineasm_iterator inlineasm_begin() {
- return InlineAsmList.begin();
- }
- const_inlineasm_iterator inlineasm_begin() const {
- return InlineAsmList.begin();
- }
- inlineasm_iterator inlineasm_end() {
- return InlineAsmList.end();
- }
- const_inlineasm_iterator inlineasm_end() const {
- return InlineAsmList.end();
- }
- bool inlineasm_empty() const { return InlineAsmList.empty(); }
-
//===--------------------------------------------------------------------===//
// List of dependent library access functions