summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-isel-fuzzer/llvm-isel-fuzzer.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2019-11-13 15:17:46 -0800
committerReid Kleckner <rnk@google.com>2019-11-13 16:39:34 -0800
commit1dfede3122eec83b885d788553e3620806d54650 (patch)
tree62cf4c91e3b52cf169b50da2887adf3115b1eecc /llvm/tools/llvm-isel-fuzzer/llvm-isel-fuzzer.cpp
parent4fa44f989e93661e5496a776882f926db0c369fa (diff)
downloadbcm5719-llvm-1dfede3122eec83b885d788553e3620806d54650.tar.gz
bcm5719-llvm-1dfede3122eec83b885d788553e3620806d54650.zip
Move CodeGenFileType enum to Support/CodeGen.h
Avoids the need to include TargetMachine.h from various places just for an enum. Various other enums live here, such as the optimization level, TLS model, etc. Data suggests that this change probably doesn't matter, but it seems nice to have anyway.
Diffstat (limited to 'llvm/tools/llvm-isel-fuzzer/llvm-isel-fuzzer.cpp')
-rw-r--r--llvm/tools/llvm-isel-fuzzer/llvm-isel-fuzzer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-isel-fuzzer/llvm-isel-fuzzer.cpp b/llvm/tools/llvm-isel-fuzzer/llvm-isel-fuzzer.cpp
index a27f1147a4a..b71ed4a7056 100644
--- a/llvm/tools/llvm-isel-fuzzer/llvm-isel-fuzzer.cpp
+++ b/llvm/tools/llvm-isel-fuzzer/llvm-isel-fuzzer.cpp
@@ -98,7 +98,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
TargetLibraryInfoImpl TLII(TM->getTargetTriple());
PM.add(new TargetLibraryInfoWrapperPass(TLII));
raw_null_ostream OS;
- TM->addPassesToEmitFile(PM, OS, nullptr, TargetMachine::CGFT_Null);
+ TM->addPassesToEmitFile(PM, OS, nullptr, CGFT_Null);
PM.run(*M);
return 0;
OpenPOWER on IntegriCloud