mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
llvm-extract should remove module-level asm
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31086 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5860715e9d
commit
9dcbf0dedc
@ -33,11 +33,11 @@ namespace {
|
||||
Named = M.getMainFunction();
|
||||
if (Named == 0) return false; // No function to extract
|
||||
}
|
||||
|
||||
|
||||
if (deleteFunc)
|
||||
return deleteFunction();
|
||||
else
|
||||
return isolateFunction(M);
|
||||
M.setModuleInlineAsm("");
|
||||
return isolateFunction(M);
|
||||
}
|
||||
|
||||
bool deleteFunction() {
|
||||
|
Loading…
Reference in New Issue
Block a user