diff options
author | Jessica Paquette <jpaquette@apple.com> | 2018-04-03 21:36:00 +0000 |
---|---|---|
committer | Jessica Paquette <jpaquette@apple.com> | 2018-04-03 21:36:00 +0000 |
commit | d506bf8e3d0ff9f2637269553c43328b8b0e7371 (patch) | |
tree | 3a50cff881c89a2a725b118d91616c126058d21c /llvm/lib/CodeGen/MachineOutliner.cpp | |
parent | 88f40cf303c33cc1d8231e140ec19a78e1aa64f8 (diff) | |
download | bcm5719-llvm-d506bf8e3d0ff9f2637269553c43328b8b0e7371.tar.gz bcm5719-llvm-d506bf8e3d0ff9f2637269553c43328b8b0e7371.zip |
[MachineOutliner][NFC] Make outlined functions have internal linkage
The linkage type on outlined functions was private before. This meant that if
you set a breakpoint in an outlined function, the debugger wouldn't be able to
give a sane name to the outlined function.
This commit changes the linkage type to internal and updates any tests that
relied on the prefixes on the names of outlined functions.
llvm-svn: 329116
Diffstat (limited to 'llvm/lib/CodeGen/MachineOutliner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineOutliner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineOutliner.cpp b/llvm/lib/CodeGen/MachineOutliner.cpp index fb8b86512a2..2a6a94dc882 100644 --- a/llvm/lib/CodeGen/MachineOutliner.cpp +++ b/llvm/lib/CodeGen/MachineOutliner.cpp @@ -1239,7 +1239,7 @@ MachineOutliner::createOutlinedFunction(Module &M, const OutlinedFunction &OF, // NOTE: If this is linkonceodr, then we can take advantage of linker deduping // which gives us better results when we outline from linkonceodr functions. - F->setLinkage(GlobalValue::PrivateLinkage); + F->setLinkage(GlobalValue::InternalLinkage); F->setUnnamedAddr(GlobalValue::UnnamedAddr::Global); // Save F so that we can add debug info later if we need to. |