Index: src/IceGlobalContext.cpp |
diff --git a/src/IceGlobalContext.cpp b/src/IceGlobalContext.cpp |
index 2b143f70561592f2e8c3bc03f8f920415fef279d..74dfb9ecebd7c29797960fd13498721b6fa31dc7 100644 |
--- a/src/IceGlobalContext.cpp |
+++ b/src/IceGlobalContext.cpp |
@@ -314,7 +314,6 @@ IceString GlobalContext::mangleName(const IceString &Name) const { |
} |
GlobalContext::~GlobalContext() { |
- llvm::DeleteContainerPointers(GlobalDeclarations); |
llvm::DeleteContainerPointers(AllThreadContexts); |
} |
@@ -448,29 +447,6 @@ ConstantList GlobalContext::getConstantPool(Type Ty) { |
llvm_unreachable("Unknown type"); |
} |
-// No locking because only the bitcode parser thread calls it. |
-// TODO(stichnot,kschimpf): GlobalContext::GlobalDeclarations actually |
-// seems to be unused. If so, remove that field and this method. |
-FunctionDeclaration * |
-GlobalContext::newFunctionDeclaration(const FuncSigType *Signature, |
- unsigned CallingConv, unsigned Linkage, |
- bool IsProto) { |
- FunctionDeclaration *Func = new FunctionDeclaration( |
- *Signature, static_cast<llvm::CallingConv::ID>(CallingConv), |
- static_cast<llvm::GlobalValue::LinkageTypes>(Linkage), IsProto); |
- GlobalDeclarations.push_back(Func); |
- return Func; |
-} |
- |
-// No locking because only the bitcode parser thread calls it. |
-// TODO(stichnot,kschimpf): GlobalContext::GlobalDeclarations actually |
-// seems to be unused. If so, remove that field and this method. |
-VariableDeclaration *GlobalContext::newVariableDeclaration() { |
- VariableDeclaration *Var = new VariableDeclaration(); |
- GlobalDeclarations.push_back(Var); |
- return Var; |
-} |
- |
TimerStackIdT GlobalContext::newTimerStackID(const IceString &Name) { |
if (!ALLOW_DUMP) |
return 0; |