[llvm] 24ac6a2 - FuzzerCLI.h - reduce StringRef.h include to forward declaration. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue May 12 05:04:14 PDT 2020
Author: Simon Pilgrim
Date: 2020-05-12T13:03:50+01:00
New Revision: 24ac6a2d7dd0551f9681239075834d37732831d2
URL: https://github.com/llvm/llvm-project/commit/24ac6a2d7dd0551f9681239075834d37732831d2
DIFF: https://github.com/llvm/llvm-project/commit/24ac6a2d7dd0551f9681239075834d37732831d2.diff
LOG: FuzzerCLI.h - reduce StringRef.h include to forward declaration. NFC.
Added:
Modified:
llvm/include/llvm/FuzzMutate/FuzzerCLI.h
llvm/lib/FuzzMutate/FuzzerCLI.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/FuzzMutate/FuzzerCLI.h b/llvm/include/llvm/FuzzMutate/FuzzerCLI.h
index 2a16e43a6ab3..27eec058b599 100644
--- a/llvm/include/llvm/FuzzMutate/FuzzerCLI.h
+++ b/llvm/include/llvm/FuzzMutate/FuzzerCLI.h
@@ -14,12 +14,13 @@
#ifndef LLVM_FUZZMUTATE_FUZZER_CLI_H
#define LLVM_FUZZMUTATE_FUZZER_CLI_H
-#include "llvm/ADT/StringRef.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/Support/DataTypes.h"
namespace llvm {
+class StringRef;
+
/// Parse cl::opts from a fuzz target commandline.
///
/// This handles all arguments after -ignore_remaining_args=1 as cl::opts.
diff --git a/llvm/lib/FuzzMutate/FuzzerCLI.cpp b/llvm/lib/FuzzMutate/FuzzerCLI.cpp
index b77a0e091840..32eba275da7b 100644
--- a/llvm/lib/FuzzMutate/FuzzerCLI.cpp
+++ b/llvm/lib/FuzzMutate/FuzzerCLI.cpp
@@ -7,6 +7,7 @@
//===----------------------------------------------------------------------===//
#include "llvm/FuzzMutate/FuzzerCLI.h"
+#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Triple.h"
#include "llvm/Bitcode/BitcodeReader.h"
#include "llvm/Bitcode/BitcodeWriter.h"
More information about the llvm-commits
mailing list