This is follow up to https://reviews.llvm.org/D106198 where llvm-dwp was refactored in to multiple files.
In this patch moving them in to lib/include directories.
Reviewed By: dblaikie
Differential Revision: https://reviews.llvm.org/D106493
-#ifndef LLVM_TOOLS_LLVM_DWP_DWP_H
-#define LLVM_TOOLS_LLVM_DWP_DWP_H
+#ifndef LLVM_DWP_DWP_H
+#define LLVM_DWP_DWP_H
#include "DWPStringPool.h"
#include "llvm/ADT/ArrayRef.h"
uint32_t IndexVersion);
} // namespace llvm
-#endif // LLVM_TOOLS_LLVM_DWP_DWP_H
+#endif // LLVM_DWP_DWP_H
-#ifndef TOOLS_LLVM_DWP_DWPERROR
-#define TOOLS_LLVM_DWP_DWPERROR
+#ifndef LLVM_DWP_DWPERROR_H
+#define LLVM_DWP_DWPERROR_H
#include "llvm/Support/Error.h"
#include "llvm/Support/ErrorHandling.h"
};
} // namespace llvm
-#endif
+#endif // LLVM_DWP_DWPERROR_H
-#ifndef TOOLS_LLVM_DWP_DWPSTRINGPOOL
-#define TOOLS_LLVM_DWP_DWPSTRINGPOOL
+#ifndef LLVM_DWP_DWPSTRINGPOOL_H
+#define LLVM_DWP_DWPSTRINGPOOL_H
#include "llvm/ADT/DenseMap.h"
#include "llvm/MC/MCSection.h"
};
} // namespace llvm
-#endif
+#endif // LLVM_DWP_DWPSTRINGPOOL_H
add_subdirectory(Option)
add_subdirectory(Remarks)
add_subdirectory(DebugInfo)
+add_subdirectory(DWP)
add_subdirectory(ExecutionEngine)
add_subdirectory(Target)
add_subdirectory(AsmParser)
--- /dev/null
+add_llvm_component_library(LLVMDWP
+ DWP.cpp
+ DWPError.cpp
+
+ ADDITIONAL_HEADER_DIRS
+ ${LLVM_MAIN_INCLUDE_DIR}/llvm/DWP
+
+ DEPENDS
+ intrinsics_gen
+
+ LINK_COMPONENTS
+ DebugInfoDWARF
+ MC
+ Object
+ Support
+ Target
+)
// package files).
//
//===----------------------------------------------------------------------===//
-#include "DWP.h"
-#include "DWPError.h"
+#include "llvm/DWP/DWP.h"
+#include "llvm/DWP/DWPError.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCObjectFileInfo.h"
#include "llvm/MC/MCTargetOptionsCommandFlags.h"
-#include "DWPError.h"
+#include "llvm/DWP/DWPError.h"
using namespace llvm;
char DWPError::ID;
set(LLVM_LINK_COMPONENTS
- AllTargetsAsmParsers
AllTargetsCodeGens
AllTargetsDescs
AllTargetsInfos
- AsmPrinter
DebugInfoDWARF
+ DWP
MC
Object
Support
- Target
)
add_llvm_tool(llvm-dwp
llvm-dwp.cpp
- DWP.cpp
- DWPError.cpp
DEPENDS
intrinsics_gen
// package files).
//
//===----------------------------------------------------------------------===//
-#include "DWP.h"
-#include "DWPError.h"
-#include "DWPStringPool.h"
+#include "llvm/DWP/DWP.h"
+#include "llvm/DWP/DWPError.h"
+#include "llvm/DWP/DWPStringPool.h"
#include "llvm/MC/MCAsmBackend.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCCodeEmitter.h"