]> granicus.if.org Git - clang/commitdiff
Function parameters for PIC16 are like local variables. So use the keyword ".auto...
authorSanjiv Gupta <sanjiv.gupta@microchip.com>
Tue, 10 Feb 2009 04:17:25 +0000 (04:17 +0000)
committerSanjiv Gupta <sanjiv.gupta@microchip.com>
Tue, 10 Feb 2009 04:17:25 +0000 (04:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64198 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDecl.cpp

index ce76ed56bbfe1fdc3651971cac4f79b6cffe98cc..dad50fcec40fa6fb48ecae373c8804ab62c55b60 100644 (file)
@@ -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.