[llvm] 95c7b66 - PluginLoader.h - only include CommandLine.h if required. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 11 03:48:02 PDT 2020
Author: Simon Pilgrim
Date: 2020-09-11T11:44:29+01:00
New Revision: 95c7b66abe594116789dd21b32c8ef4c677d18c8
URL: https://github.com/llvm/llvm-project/commit/95c7b66abe594116789dd21b32c8ef4c677d18c8
DIFF: https://github.com/llvm/llvm-project/commit/95c7b66abe594116789dd21b32c8ef4c677d18c8.diff
LOG: PluginLoader.h - only include CommandLine.h if required. NFCI.
We only need this if DONT_GET_PLUGIN_LOADER_OPTION isn't defined.
Added:
Modified:
llvm/include/llvm/Support/PluginLoader.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Support/PluginLoader.h b/llvm/include/llvm/Support/PluginLoader.h
index c0c516bdae03..95c087f03d9b 100644
--- a/llvm/include/llvm/Support/PluginLoader.h
+++ b/llvm/include/llvm/Support/PluginLoader.h
@@ -16,7 +16,11 @@
#ifndef LLVM_SUPPORT_PLUGINLOADER_H
#define LLVM_SUPPORT_PLUGINLOADER_H
+#ifndef DONT_GET_PLUGIN_LOADER_OPTION
#include "llvm/Support/CommandLine.h"
+#endif
+
+#include <string>
namespace llvm {
struct PluginLoader {
More information about the llvm-commits
mailing list