[cfe-commits] r64198 - /cfe/trunk/lib/CodeGen/CGDecl.cpp
Sanjiv Gupta
sanjiv.gupta at microchip.com
Mon Feb 9 20:17:31 PST 2009
Author: sgupta
Date: Mon Feb 9 22:17:25 2009
New Revision: 64198
URL: http://llvm.org/viewvc/llvm-project?rev=64198&view=rev
Log:
Function parameters for PIC16 are like local variables. So use the keyword ".auto." to mangle their names. The working of PIC16AsmPrinter relies on that keyword currently.
Modified:
cfe/trunk/lib/CodeGen/CGDecl.cpp
Modified: cfe/trunk/lib/CodeGen/CGDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDecl.cpp?rev=64198&r1=64197&r2=64198&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDecl.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDecl.cpp Mon Feb 9 22:17:25 2009
@@ -270,7 +270,7 @@
// Targets that don't have stack use global address space for parameters.
// Specify external linkage for such globals so that llvm optimizer do
// not assume there values initialized as zero.
- DeclPtr = GenerateStaticBlockVarDecl(D, true, ".arg.",
+ DeclPtr = GenerateStaticBlockVarDecl(D, true, ".auto.",
llvm::GlobalValue::ExternalLinkage);
} else {
// A fixed sized single-value variable becomes an alloca in the entry block.
More information about the cfe-commits
mailing list