summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-14 23:28:41 +0000
committerChris Lattner <sabre@nondot.org>2001-10-14 23:28:41 +0000
commit01a206b8fd820cf0e8200ebb9a52d09a1af112f4 (patch)
treed0bf292ff745c7a4183b727b2b262cd226c23203 /llvm/lib/Bytecode
parent79ccfb1e07e7db7b7a3ce1a72773901d9897d3df (diff)
downloadbcm5719-llvm-01a206b8fd820cf0e8200ebb9a52d09a1af112f4.tar.gz
bcm5719-llvm-01a206b8fd820cf0e8200ebb9a52d09a1af112f4.zip
External methods shouldn't have argument lists
llvm-svn: 807
Diffstat (limited to 'llvm/lib/Bytecode')
-rw-r--r--llvm/lib/Bytecode/Reader/Reader.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Bytecode/Reader/Reader.cpp b/llvm/lib/Bytecode/Reader/Reader.cpp
index f93e73d42f7..5cb20790b91 100644
--- a/llvm/lib/Bytecode/Reader/Reader.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud