diff options
| author | Kamil Rytarowski <n54@gmx.com> | 2018-12-15 16:51:35 +0000 |
|---|---|---|
| committer | Kamil Rytarowski <n54@gmx.com> | 2018-12-15 16:51:35 +0000 |
| commit | 21e270a479a24738d641e641115bce6af6ed360a (patch) | |
| tree | 134f1271cea63aa666233a0b6f502ae130083c93 | |
| parent | 15ae738bc8b6eee59a00d55b92fb133faace582b (diff) | |
| download | bcm5719-llvm-21e270a479a24738d641e641115bce6af6ed360a.tar.gz bcm5719-llvm-21e270a479a24738d641e641115bce6af6ed360a.zip | |
Add NetBSD support in needsRuntimeRegistrationOfSectionRange.
Use linker script magic to get data/cnts/name start/end.
llvm-svn: 349277
| -rw-r--r-- | llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp index 62da9300253..15b94388cbe 100644 --- a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp +++ b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp @@ -701,6 +701,7 @@ static bool needsRuntimeRegistrationOfSectionRange(const Module &M) { // 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; |

