mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Fix bug: test/Regression/Assembler/2002-07-14-InternalLossage.llx
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2907 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1198,6 +1198,11 @@ FunctionHeaderH : OptInternal TypesV FuncName '(' ArgList ')' {
|
|||||||
if (!CurMeth.isDeclare && !M->isExternal())
|
if (!CurMeth.isDeclare && !M->isExternal())
|
||||||
ThrowException("Redefinition of function '" + FunctionName + "'!");
|
ThrowException("Redefinition of function '" + FunctionName + "'!");
|
||||||
|
|
||||||
|
// Make sure that we keep track of the internal marker, even if there was
|
||||||
|
// a previous "declare".
|
||||||
|
if ($1)
|
||||||
|
M->setInternalLinkage(true);
|
||||||
|
|
||||||
// If we found a preexisting function prototype, remove it from the
|
// If we found a preexisting function prototype, remove it from the
|
||||||
// module, so that we don't get spurious conflicts with global & local
|
// module, so that we don't get spurious conflicts with global & local
|
||||||
// variables.
|
// variables.
|
||||||
|
Reference in New Issue
Block a user