[llvm] 1df85dd - Mangler.h - reduce GlobalValue.h include to forward declaration. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun May 10 06:08:20 PDT 2020
Author: Simon Pilgrim
Date: 2020-05-10T14:03:27+01:00
New Revision: 1df85dd4e94e0693b161eda4bc007379303110da
URL: https://github.com/llvm/llvm-project/commit/1df85dd4e94e0693b161eda4bc007379303110da
DIFF: https://github.com/llvm/llvm-project/commit/1df85dd4e94e0693b161eda4bc007379303110da.diff
LOG: Mangler.h - reduce GlobalValue.h include to forward declaration. NFC.
Exposes implicit dependency in ModuleSymbolTable.h - added missing Module forward declaration.
Added:
Modified:
llvm/include/llvm/IR/Mangler.h
llvm/include/llvm/Object/ModuleSymbolTable.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/IR/Mangler.h b/llvm/include/llvm/IR/Mangler.h
index e4a05ab46a65..747a4085235c 100644
--- a/llvm/include/llvm/IR/Mangler.h
+++ b/llvm/include/llvm/IR/Mangler.h
@@ -14,11 +14,11 @@
#define LLVM_IR_MANGLER_H
#include "llvm/ADT/DenseMap.h"
-#include "llvm/IR/GlobalValue.h"
namespace llvm {
class DataLayout;
+class GlobalValue;
template <typename T> class SmallVectorImpl;
class Triple;
class Twine;
diff --git a/llvm/include/llvm/Object/ModuleSymbolTable.h b/llvm/include/llvm/Object/ModuleSymbolTable.h
index 4c582fbcda81..1134b98c2247 100644
--- a/llvm/include/llvm/Object/ModuleSymbolTable.h
+++ b/llvm/include/llvm/Object/ModuleSymbolTable.h
@@ -28,6 +28,7 @@
namespace llvm {
class GlobalValue;
+class Module;
class ModuleSymbolTable {
public:
More information about the llvm-commits
mailing list