mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 06:32:24 +00:00
Print file-scope inline asm blocks at the start of the output file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25565 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7e6db764b1
commit
2c1b1597f2
@ -71,6 +71,11 @@ void AsmPrinter::SwitchSection(const char *NewSection, const GlobalValue *GV) {
|
||||
|
||||
bool AsmPrinter::doInitialization(Module &M) {
|
||||
Mang = new Mangler(M, GlobalPrefix);
|
||||
|
||||
if (!M.getInlineAsm().empty())
|
||||
O << CommentString << " Start File Scope Asm Blocks:\n" << M.getInlineAsm()
|
||||
<< "\n" << CommentString << " End File Scope Asm Blocks\n";
|
||||
|
||||
SwitchSection("", 0); // Reset back to no section.
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user