[llvm] r349277 - Add NetBSD support in needsRuntimeRegistrationOfSectionRange.
Kamil Rytarowski via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 15 08:51:35 PST 2018
Author: kamil
Date: Sat Dec 15 08:51:35 2018
New Revision: 349277
URL: http://llvm.org/viewvc/llvm-project?rev=349277&view=rev
Log:
Add NetBSD support in needsRuntimeRegistrationOfSectionRange.
Use linker script magic to get data/cnts/name start/end.
Modified:
llvm/trunk/lib/Transforms/Instrumentation/InstrProfiling.cpp
Modified: llvm/trunk/lib/Transforms/Instrumentation/InstrProfiling.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/InstrProfiling.cpp?rev=349277&r1=349276&r2=349277&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/InstrProfiling.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/InstrProfiling.cpp Sat Dec 15 08:51:35 2018
@@ -701,6 +701,7 @@ static bool needsRuntimeRegistrationOfSe
// Use linker script magic to get data/cnts/name start/end.
if (Triple(M.getTargetTriple()).isOSLinux() ||
Triple(M.getTargetTriple()).isOSFreeBSD() ||
+ Triple(M.getTargetTriple()).isOSNetBSD() ||
Triple(M.getTargetTriple()).isOSFuchsia() ||
Triple(M.getTargetTriple()).isPS4CPU())
return false;
More information about the llvm-commits
mailing list