mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
[ASan] Make GlobalsMD member a const reference.
PR42924 points out that copying the GlobalsMetadata type during construction of AddressSanitizer can result in exteremely lengthened build times for translation units that have many globals. This can be addressed by just making the GlobalsMD member in AddressSanitizer a reference to avoid the copy. The GlobalsMetadata type is already passed to the constructor as a reference anyway. Differential Revision: https://reviews.llvm.org/D68287 llvm-svn: 373389
This commit is contained in:
parent
a49fa03628
commit
e858a54419
@ -692,7 +692,7 @@ private:
|
||||
FunctionCallee AsanMemmove, AsanMemcpy, AsanMemset;
|
||||
InlineAsm *EmptyAsm;
|
||||
Value *LocalDynamicShadow = nullptr;
|
||||
GlobalsMetadata GlobalsMD;
|
||||
const GlobalsMetadata &GlobalsMD;
|
||||
DenseMap<const AllocaInst *, bool> ProcessedAllocas;
|
||||
};
|
||||
|
||||
@ -798,7 +798,7 @@ private:
|
||||
}
|
||||
int GetAsanVersion(const Module &M) const;
|
||||
|
||||
GlobalsMetadata GlobalsMD;
|
||||
const GlobalsMetadata &GlobalsMD;
|
||||
bool CompileKernel;
|
||||
bool Recover;
|
||||
bool UseGlobalsGC;
|
||||
|
Loading…
x
Reference in New Issue
Block a user