SIL: Rename SILGlobalAddr to GlobalAddr.

All globals are SIL globals now.

Swift SVN r22827
This commit is contained in:
Joe Groff
2014-10-18 17:08:28 +00:00
parent b9d5a7a71b
commit 3f23b82e6d
59 changed files with 166 additions and 168 deletions

View File

@@ -610,12 +610,12 @@ public:
verifySILFunctionType(fnType);
}
void checkSILGlobalAddrInst(SILGlobalAddrInst *GAI) {
void checkGlobalAddrInst(GlobalAddrInst *GAI) {
require(GAI->getType().isAddress(),
"SILGlobalAddr must have an address result type");
"GlobalAddr must have an address result type");
require(GAI->getType().getObjectType() ==
GAI->getReferencedGlobal()->getLoweredType(),
"SILGlobalAddr must be the address type of the variable it "
"GlobalAddr must be the address type of the variable it "
"references");
if (F.isFragile()) {
SILGlobalVariable *RefG = GAI->getReferencedGlobal();