mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user