[llvm-commits] CVS: llvm/include/llvm/Module.h
Chris Lattner
lattner at cs.uiuc.edu
Wed Jan 25 10:55:49 PST 2006
Changes in directory llvm/include/llvm:
Module.h updated: 1.68 -> 1.69
---
Log message:
Change inline asms to be uniqued like constants, not embedded in a Module.
---
Diffs of the changes: (+0 -31)
Module.h | 31 -------------------------------
1 files changed, 31 deletions(-)
Index: llvm/include/llvm/Module.h
diff -u llvm/include/llvm/Module.h:1.68 llvm/include/llvm/Module.h:1.69
--- llvm/include/llvm/Module.h:1.68 Mon Jan 23 22:12:40 2006
+++ llvm/include/llvm/Module.h Wed Jan 25 12:55:37 2006
@@ -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 @@
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 @@
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 @@
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 @@
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 @@
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
More information about the llvm-commits
mailing list