forked from OSchip/llvm-project
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:
parent
0007961241
commit
e99ad00fd2
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue