SIL: Remove the global_addr instruction.

It's no longer needed now that we always lower to SIL globals.

Swift SVN r22693
This commit is contained in:
Joe Groff
2014-10-12 17:19:06 +00:00
parent 6ee6f3d751
commit bb46f4bbd9
41 changed files with 103 additions and 319 deletions

View File

@@ -135,13 +135,8 @@ private:
llvm::StringMap<SILGlobalVariable *> GlobalVariableTable;
/// The list of SILGlobalVariables in the module.
/// FIXME: Merge with 'globals'.
GlobalListType silGlobals;
/// The collection of global variables used in the module.
/// FIXME: Remove this when SILGlobalVariable is ready.
llvm::SetVector<VarDecl*> globals;
/// This is a cache of intrinsic Function declarations to numeric ID mappings.
llvm::DenseMap<Identifier, IntrinsicInfo> IntrinsicIDCache;
@@ -250,22 +245,6 @@ public:
return wholeModule;
}
// FIXME: Remove these when SILGlobalVariable is ready to take over.
using global_iterator = decltype(globals)::const_iterator;
using GlobalRange = Range<global_iterator>;
/// Returns the set of global variables in this module.
GlobalRange getGlobals() const {
return {globals.begin(), globals.end()};
}
global_iterator global_begin() const {
return globals.begin();
}
global_iterator global_end() const {
return globals.end();
}
using iterator = FunctionListType::iterator;
using const_iterator = FunctionListType::const_iterator;
FunctionListType &getFunctionList() { return functions; }