[llvm] 1b76c4c - ModuleUtils.h - include and forward declaration cleanup. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 11 14:43:37 PDT 2020
Author: Simon Pilgrim
Date: 2020-04-11T21:25:53+01:00
New Revision: 1b76c4cade59a47b9dc69b6a8f28f7dc8d1895a4
URL: https://github.com/llvm/llvm-project/commit/1b76c4cade59a47b9dc69b6a8f28f7dc8d1895a4
DIFF: https://github.com/llvm/llvm-project/commit/1b76c4cade59a47b9dc69b6a8f28f7dc8d1895a4.diff
LOG: ModuleUtils.h - include and forward declaration cleanup. NFC.
Replace SmallSet.h include with SmallVector.h - only SmallVector.h is used from inside SmallSet.h
Remove llvm::StringRef forward declaration (we include StringRef.h)
Remove unused llvm::GlobalVariable forward declaration.
Added:
Modified:
llvm/include/llvm/Transforms/Utils/ModuleUtils.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Transforms/Utils/ModuleUtils.h b/llvm/include/llvm/Transforms/Utils/ModuleUtils.h
index c2da86406e71..07fbb5b55678 100644
--- a/llvm/include/llvm/Transforms/Utils/ModuleUtils.h
+++ b/llvm/include/llvm/Transforms/Utils/ModuleUtils.h
@@ -13,7 +13,7 @@
#ifndef LLVM_TRANSFORMS_UTILS_MODULEUTILS_H
#define LLVM_TRANSFORMS_UTILS_MODULEUTILS_H
-#include "llvm/ADT/SmallSet.h"
+#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include <utility> // for std::pair
@@ -24,9 +24,7 @@ class Module;
class Function;
class FunctionCallee;
class GlobalValue;
-class GlobalVariable;
class Constant;
-class StringRef;
class Value;
class Type;
More information about the llvm-commits
mailing list