projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
22a8a73
)
only extract main if the user didn't specify anything to extract
author
Andrew Lenharth
<andrewl@lenharth.org>
Fri, 7 Mar 2008 20:10:54 +0000
(20:10 +0000)
committer
Andrew Lenharth
<andrewl@lenharth.org>
Fri, 7 Mar 2008 20:10:54 +0000
(20:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48023
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/llvm-extract/llvm-extract.cpp
patch
|
blob
|
history
diff --git
a/tools/llvm-extract/llvm-extract.cpp
b/tools/llvm-extract/llvm-extract.cpp
index 1950f53972baada20717bac39bda3c8b8837b933..360630b41dc049013915707fb2748ddcbde0d690 100644
(file)
--- a/
tools/llvm-extract/llvm-extract.cpp
+++ b/
tools/llvm-extract/llvm-extract.cpp
@@
-81,7
+81,7
@@
int main(int argc, char **argv) {
M.get()->getNamedGlobal(ExtractGlobal) : 0;
// Figure out which function we should extract
- if (!ExtractFunc.size()) ExtractFunc = "main";
+ if (!ExtractFunc.size()
&& !ExtractGlobal.size()
) ExtractFunc = "main";
Function *F = M.get()->getFunction(ExtractFunc);
if (F == 0 && G == 0) {