From e99ad00fd294dbda5aaff69915f97602912596f5 Mon Sep 17 00:00:00 2001 From: Sanjiv Gupta Date: Tue, 10 Feb 2009 04:17:25 +0000 Subject: 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. llvm-svn: 64198 --- clang/lib/CodeGen/CGDecl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CGDecl.cpp') diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp index ce76ed56bbf..dad50fcec40 100644 --- a/clang/lib/CodeGen/CGDecl.cpp +++ b/clang/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. -- cgit v1.2.3