mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
[DWP] Refactoring llvm-dwp in to a library part 2
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
This commit is contained in:
parent
f7deab5277
commit
a827bbdfea
@ -1,5 +1,5 @@
|
|||||||
#ifndef LLVM_TOOLS_LLVM_DWP_DWP_H
|
#ifndef LLVM_DWP_DWP_H
|
||||||
#define LLVM_TOOLS_LLVM_DWP_DWP_H
|
#define LLVM_DWP_DWP_H
|
||||||
|
|
||||||
#include "DWPStringPool.h"
|
#include "DWPStringPool.h"
|
||||||
#include "llvm/ADT/ArrayRef.h"
|
#include "llvm/ADT/ArrayRef.h"
|
||||||
@ -94,4 +94,4 @@ void writeIndex(MCStreamer &Out, MCSection *Section,
|
|||||||
uint32_t IndexVersion);
|
uint32_t IndexVersion);
|
||||||
|
|
||||||
} // namespace llvm
|
} // namespace llvm
|
||||||
#endif // LLVM_TOOLS_LLVM_DWP_DWP_H
|
#endif // LLVM_DWP_DWP_H
|
@ -1,5 +1,5 @@
|
|||||||
#ifndef TOOLS_LLVM_DWP_DWPERROR
|
#ifndef LLVM_DWP_DWPERROR_H
|
||||||
#define TOOLS_LLVM_DWP_DWPERROR
|
#define LLVM_DWP_DWPERROR_H
|
||||||
|
|
||||||
#include "llvm/Support/Error.h"
|
#include "llvm/Support/Error.h"
|
||||||
#include "llvm/Support/ErrorHandling.h"
|
#include "llvm/Support/ErrorHandling.h"
|
||||||
@ -20,4 +20,4 @@ private:
|
|||||||
};
|
};
|
||||||
} // namespace llvm
|
} // namespace llvm
|
||||||
|
|
||||||
#endif
|
#endif // LLVM_DWP_DWPERROR_H
|
@ -1,5 +1,5 @@
|
|||||||
#ifndef TOOLS_LLVM_DWP_DWPSTRINGPOOL
|
#ifndef LLVM_DWP_DWPSTRINGPOOL_H
|
||||||
#define TOOLS_LLVM_DWP_DWPSTRINGPOOL
|
#define LLVM_DWP_DWPSTRINGPOOL_H
|
||||||
|
|
||||||
#include "llvm/ADT/DenseMap.h"
|
#include "llvm/ADT/DenseMap.h"
|
||||||
#include "llvm/MC/MCSection.h"
|
#include "llvm/MC/MCSection.h"
|
||||||
@ -53,4 +53,4 @@ public:
|
|||||||
};
|
};
|
||||||
} // namespace llvm
|
} // namespace llvm
|
||||||
|
|
||||||
#endif
|
#endif // LLVM_DWP_DWPSTRINGPOOL_H
|
@ -26,6 +26,7 @@ add_subdirectory(ObjectYAML)
|
|||||||
add_subdirectory(Option)
|
add_subdirectory(Option)
|
||||||
add_subdirectory(Remarks)
|
add_subdirectory(Remarks)
|
||||||
add_subdirectory(DebugInfo)
|
add_subdirectory(DebugInfo)
|
||||||
|
add_subdirectory(DWP)
|
||||||
add_subdirectory(ExecutionEngine)
|
add_subdirectory(ExecutionEngine)
|
||||||
add_subdirectory(Target)
|
add_subdirectory(Target)
|
||||||
add_subdirectory(AsmParser)
|
add_subdirectory(AsmParser)
|
||||||
|
17
lib/DWP/CMakeLists.txt
Normal file
17
lib/DWP/CMakeLists.txt
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
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
|
||||||
|
)
|
@ -10,8 +10,8 @@
|
|||||||
// package files).
|
// package files).
|
||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
#include "DWP.h"
|
#include "llvm/DWP/DWP.h"
|
||||||
#include "DWPError.h"
|
#include "llvm/DWP/DWPError.h"
|
||||||
#include "llvm/MC/MCContext.h"
|
#include "llvm/MC/MCContext.h"
|
||||||
#include "llvm/MC/MCObjectFileInfo.h"
|
#include "llvm/MC/MCObjectFileInfo.h"
|
||||||
#include "llvm/MC/MCTargetOptionsCommandFlags.h"
|
#include "llvm/MC/MCTargetOptionsCommandFlags.h"
|
@ -1,3 +1,3 @@
|
|||||||
#include "DWPError.h"
|
#include "llvm/DWP/DWPError.h"
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
char DWPError::ID;
|
char DWPError::ID;
|
@ -1,20 +1,16 @@
|
|||||||
set(LLVM_LINK_COMPONENTS
|
set(LLVM_LINK_COMPONENTS
|
||||||
AllTargetsAsmParsers
|
|
||||||
AllTargetsCodeGens
|
AllTargetsCodeGens
|
||||||
AllTargetsDescs
|
AllTargetsDescs
|
||||||
AllTargetsInfos
|
AllTargetsInfos
|
||||||
AsmPrinter
|
|
||||||
DebugInfoDWARF
|
DebugInfoDWARF
|
||||||
|
DWP
|
||||||
MC
|
MC
|
||||||
Object
|
Object
|
||||||
Support
|
Support
|
||||||
Target
|
|
||||||
)
|
)
|
||||||
|
|
||||||
add_llvm_tool(llvm-dwp
|
add_llvm_tool(llvm-dwp
|
||||||
llvm-dwp.cpp
|
llvm-dwp.cpp
|
||||||
DWP.cpp
|
|
||||||
DWPError.cpp
|
|
||||||
|
|
||||||
DEPENDS
|
DEPENDS
|
||||||
intrinsics_gen
|
intrinsics_gen
|
||||||
|
@ -10,9 +10,9 @@
|
|||||||
// package files).
|
// package files).
|
||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
#include "DWP.h"
|
#include "llvm/DWP/DWP.h"
|
||||||
#include "DWPError.h"
|
#include "llvm/DWP/DWPError.h"
|
||||||
#include "DWPStringPool.h"
|
#include "llvm/DWP/DWPStringPool.h"
|
||||||
#include "llvm/MC/MCAsmBackend.h"
|
#include "llvm/MC/MCAsmBackend.h"
|
||||||
#include "llvm/MC/MCAsmInfo.h"
|
#include "llvm/MC/MCAsmInfo.h"
|
||||||
#include "llvm/MC/MCCodeEmitter.h"
|
#include "llvm/MC/MCCodeEmitter.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user