projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
349d591
)
External methods shouldn't have argument lists
author
Chris Lattner
<sabre@nondot.org>
Sun, 14 Oct 2001 23:28:41 +0000
(23:28 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 14 Oct 2001 23:28:41 +0000
(23:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@807
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Bytecode/Reader/Reader.cpp
patch
|
blob
|
history
diff --git
a/lib/Bytecode/Reader/Reader.cpp
b/lib/Bytecode/Reader/Reader.cpp
index f93e73d42f76845c2f28146162277b5d2b8a55e7..5cb20790b91b3a9d463994f651c96476d64a0f69 100644
(file)
--- a/
lib/Bytecode/Reader/Reader.cpp
+++ b/
lib/Bytecode/Reader/Reader.cpp
@@
-349,6
+349,10
@@
bool BytecodeParser::ParseMethod(const uchar *&Buf, const uchar *EndBuf,
// We don't need the placeholder anymore!
delete MethPHolder;
+ // If the method is empty, we don't need the method argument entries...
+ if (M->isExternal())
+ M->getArgumentList().delete_all();
+
DeclareNewGlobalValue(M, MethSlot);
return false;