diff options
author | Chris Lattner <sabre@nondot.org> | 2006-10-20 21:35:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-10-20 21:35:41 +0000 |
commit | af1222c1a7862add472700784dbff077785b4088 (patch) | |
tree | 878448929810d78784faa6f577b0767e79423233 /llvm/lib/Transforms/IPO/ExtractFunction.cpp | |
parent | 8366b874a945dcf21370be784085a4e6e86a1eab (diff) | |
download | bcm5719-llvm-af1222c1a7862add472700784dbff077785b4088.tar.gz bcm5719-llvm-af1222c1a7862add472700784dbff077785b4088.zip |
llvm-extract should remove module-level asm
llvm-svn: 31086
Diffstat (limited to 'llvm/lib/Transforms/IPO/ExtractFunction.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/ExtractFunction.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/IPO/ExtractFunction.cpp b/llvm/lib/Transforms/IPO/ExtractFunction.cpp index 4cce79be61e..69d0926fb62 100644 --- a/llvm/lib/Transforms/IPO/ExtractFunction.cpp +++ b/llvm/lib/Transforms/IPO/ExtractFunction.cpp @@ -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() { |