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
This commit is contained in:
Sanjiv Gupta 2009-02-10 04:17:25 +00:00
parent 0007961241
commit e99ad00fd2
1 changed files with 1 additions and 1 deletions

View 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. // Targets that don't have stack use global address space for parameters.
// Specify external linkage for such globals so that llvm optimizer do // Specify external linkage for such globals so that llvm optimizer do
// not assume there values initialized as zero. // not assume there values initialized as zero.
DeclPtr = GenerateStaticBlockVarDecl(D, true, ".arg.", DeclPtr = GenerateStaticBlockVarDecl(D, true, ".auto.",
llvm::GlobalValue::ExternalLinkage); llvm::GlobalValue::ExternalLinkage);
} else { } else {
// A fixed sized single-value variable becomes an alloca in the entry block. // A fixed sized single-value variable becomes an alloca in the entry block.