mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-14 07:31:39 +00:00
Mark an unmaterialized function as having GhostLinkage
llvm-svn: 17748
This commit is contained in:
parent
c7cdc44158
commit
6da7a2e054
@ -1735,6 +1735,10 @@ void BytecodeReader::ParseFunctionLazily() {
|
||||
// Save the information for future reading of the function
|
||||
LazyFunctionLoadMap[Func] = LazyFunctionInfo(BlockStart, BlockEnd);
|
||||
|
||||
// This function has a body but it's not loaded so it appears `External'.
|
||||
// Mark it as a `Ghost' instead to notify the users that it has a body.
|
||||
Func->setLinkage(GlobalValue::GhostLinkage);
|
||||
|
||||
// Pretend we've `parsed' this function
|
||||
At = BlockEnd;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user