mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: Add SILGlobalAddrInst.
Like GlobalAddrInst, but for SILGlobalVariables. These would become the same instruction when SILGlobalVariable can replace AST-level global references. Swift SVN r10510
This commit is contained in:
@@ -564,6 +564,12 @@ public:
|
||||
<< " : " << GAI->getType();
|
||||
}
|
||||
|
||||
void visitSILGlobalAddrInst(SILGlobalAddrInst *GAI) {
|
||||
OS << "sil_global_addr ";
|
||||
GAI->getReferencedGlobal()->printName(OS);
|
||||
OS << " : " << GAI->getType();
|
||||
}
|
||||
|
||||
void visitIntegerLiteralInst(IntegerLiteralInst *ILI) {
|
||||
const auto &lit = ILI->getValue();
|
||||
OS << "integer_literal " << ILI->getType() << ", " << lit;
|
||||
|
||||
Reference in New Issue
Block a user