aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/Module.cpp
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 /lib/VMCore/Module.cpp
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 'lib/VMCore/Module.cpp')
-rw-r--r--lib/VMCore/Module.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/VMCore/Module.cpp b/lib/VMCore/Module.cpp
index e9b28f9faf..b6761a616c 100644
--- a/lib/VMCore/Module.cpp
+++ b/lib/VMCore/Module.cpp
@@ -44,30 +44,17 @@ GlobalVariable *ilist_traits<GlobalVariable>::createSentinel() {
return Ret;
}
-InlineAsm *ilist_traits<InlineAsm>::createSentinel() {
- InlineAsm *Ret = new InlineAsm(FunctionType::get(Type::VoidTy,
- std::vector<const Type*>(), false), "", "",
- false);
- // This should not be garbage monitored.
- LeakDetector::removeGarbageObject(Ret);
- return Ret;
-}
-
iplist<Function> &ilist_traits<Function>::getList(Module *M) {
return M->getFunctionList();
}
iplist<GlobalVariable> &ilist_traits<GlobalVariable>::getList(Module *M) {
return M->getGlobalList();
}
-iplist<InlineAsm> &ilist_traits<InlineAsm>::getList(Module *M) {
- return M->getInlineAsmList();
-}
// Explicit instantiations of SymbolTableListTraits since some of the methods
// are not in the public header file.
template class SymbolTableListTraits<GlobalVariable, Module, Module>;
template class SymbolTableListTraits<Function, Module, Module>;
-template class SymbolTableListTraits<InlineAsm, Module, Module>;
//===----------------------------------------------------------------------===//
// Primitive Module methods.
@@ -79,8 +66,6 @@ Module::Module(const std::string &MID)
FunctionList.setParent(this);
GlobalList.setItemParent(this);
GlobalList.setParent(this);
- InlineAsmList.setItemParent(this);
- InlineAsmList.setParent(this);
SymTab = new SymbolTable();
}
@@ -90,8 +75,6 @@ Module::~Module() {
GlobalList.setParent(0);
FunctionList.clear();
FunctionList.setParent(0);
- InlineAsmList.clear();
- InlineAsmList.setParent(0);
LibraryList.clear();
delete SymTab;
}