[llvm] cdceef4 - [Analysis] Ensure we include CommandLine.h if we declare any cl::opt flags. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 23 04:31:31 PDT 2020
Author: Simon Pilgrim
Date: 2020-06-23T12:29:51+01:00
New Revision: cdceef4a4f9cecf76c2c1f82bbdd1747fbfb75dc
URL: https://github.com/llvm/llvm-project/commit/cdceef4a4f9cecf76c2c1f82bbdd1747fbfb75dc
DIFF: https://github.com/llvm/llvm-project/commit/cdceef4a4f9cecf76c2c1f82bbdd1747fbfb75dc.diff
LOG: [Analysis] Ensure we include CommandLine.h if we declare any cl::opt flags. NFC.
Added:
Modified:
llvm/lib/Analysis/CaptureTracking.cpp
llvm/lib/Analysis/InlineAdvisor.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/CaptureTracking.cpp b/llvm/lib/Analysis/CaptureTracking.cpp
index d7ddb7d9e0a5..8b101e3b2cc4 100644
--- a/llvm/lib/Analysis/CaptureTracking.cpp
+++ b/llvm/lib/Analysis/CaptureTracking.cpp
@@ -25,6 +25,7 @@
#include "llvm/IR/Dominators.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/IntrinsicInst.h"
+#include "llvm/Support/CommandLine.h"
using namespace llvm;
diff --git a/llvm/lib/Analysis/InlineAdvisor.cpp b/llvm/lib/Analysis/InlineAdvisor.cpp
index 2d7b4cabebb1..04e562eea8e5 100644
--- a/llvm/lib/Analysis/InlineAdvisor.cpp
+++ b/llvm/lib/Analysis/InlineAdvisor.cpp
@@ -20,6 +20,7 @@
#include "llvm/Analysis/TargetTransformInfo.h"
#include "llvm/IR/DebugInfoMetadata.h"
#include "llvm/IR/Instructions.h"
+#include "llvm/Support/CommandLine.h"
#include "llvm/Support/raw_ostream.h"
#include <sstream>
More information about the llvm-commits
mailing list