diff options
author | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-02-10 04:17:25 +0000 |
---|---|---|
committer | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-02-10 04:17:25 +0000 |
commit | 193cdbe73e77171a5800ca6ecd783d909764dc88 (patch) | |
tree | 2ddaf5e7e110d619623ccad3674fec651519dfa9 /lib/CodeGen/CGDecl.cpp | |
parent | 4e484b8134c7eaeced03be7e4e0f7349def9b355 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64198 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | lib/CodeGen/CGDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGDecl.cpp b/lib/CodeGen/CGDecl.cpp index ce76ed56bb..dad50fcec4 100644 --- a/lib/CodeGen/CGDecl.cpp +++ b/lib/CodeGen/CGDecl.cpp @@ -270,7 +270,7 @@ void CodeGenFunction::EmitParmDecl(const VarDecl &D, llvm::Value *Arg) { // 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. |