[llvm] 55b9146 - [MCPseudoProbe] Clean up includes (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 9 01:31:39 PDT 2021
Author: Nikita Popov
Date: 2021-10-09T10:31:15+02:00
New Revision: 55b9146848c4460beb77ee2928c4a049ab6034c2
URL: https://github.com/llvm/llvm-project/commit/55b9146848c4460beb77ee2928c4a049ab6034c2
DIFF: https://github.com/llvm/llvm-project/commit/55b9146848c4460beb77ee2928c4a049ab6034c2.diff
LOG: [MCPseudoProbe] Clean up includes (NFC)
This was including various things that don't appear to be used in
the header at all.
Added:
Modified:
llvm/include/llvm/MC/MCPseudoProbe.h
llvm/lib/MC/MCPseudoProbe.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/MC/MCPseudoProbe.h b/llvm/include/llvm/MC/MCPseudoProbe.h
index d05cf4e1cb38d..abc9705f0851a 100644
--- a/llvm/include/llvm/MC/MCPseudoProbe.h
+++ b/llvm/include/llvm/MC/MCPseudoProbe.h
@@ -44,33 +44,26 @@
#ifndef LLVM_MC_MCPSEUDOPROBE_H
#define LLVM_MC_MCPSEUDOPROBE_H
-#include "llvm/ADT/MapVector.h"
+#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
-#include "llvm/ADT/Twine.h"
#include "llvm/IR/PseudoProbe.h"
-#include "llvm/MC/MCSection.h"
-#include "llvm/Support/Errc.h"
-#include "llvm/Support/Error.h"
#include "llvm/Support/ErrorOr.h"
-#include "llvm/Support/WithColor.h"
-#include "llvm/Support/raw_ostream.h"
-#include <algorithm>
-#include <functional>
#include <list>
#include <map>
-#include <set>
-#include <sstream>
+#include <memory>
#include <string>
-#include <system_error>
+#include <tuple>
+#include <type_traits>
#include <unordered_map>
-#include <unordered_set>
#include <vector>
namespace llvm {
+class MCSection;
class MCStreamer;
class MCSymbol;
class MCObjectStreamer;
+class raw_ostream;
enum class MCPseudoProbeFlag {
// If set, indicates that the probe is encoded as an address delta
diff --git a/llvm/lib/MC/MCPseudoProbe.cpp b/llvm/lib/MC/MCPseudoProbe.cpp
index 29d23a1bc0b24..e35bcec8fe750 100644
--- a/llvm/lib/MC/MCPseudoProbe.cpp
+++ b/llvm/lib/MC/MCPseudoProbe.cpp
@@ -17,6 +17,7 @@
#include "llvm/Support/raw_ostream.h"
#include <limits>
#include <memory>
+#include <sstream>
#define DEBUG_TYPE "mcpseudoprobe"
More information about the llvm-commits
mailing list