mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-24 12:19:53 +00:00
Move parts of llvm-symbolizer tool into LLVMSymbolize library.
Summary: See http://lists.llvm.org/pipermail/llvm-dev/2015-October/091624.html Reviewers: echristo Subscribers: llvm-commits, aizatsky Differential Revision: http://reviews.llvm.org/D13998 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251316 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
98a8bb4c52
commit
0cd635f750
@ -1,4 +1,4 @@
|
||||
//===-- LLVMSymbolize.h ----------------------------------------- C++ -----===//
|
||||
//===-- Symbolize.h --------------------------------------------- C++ -----===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
@ -10,8 +10,8 @@
|
||||
// Header for LLVM symbolization library.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
#ifndef LLVM_TOOLS_LLVM_SYMBOLIZER_LLVMSYMBOLIZE_H
|
||||
#define LLVM_TOOLS_LLVM_SYMBOLIZER_LLVMSYMBOLIZE_H
|
||||
#ifndef LLVM_DEBUGINFO_SYMBOLIZE_SYMBOLIZE_H
|
||||
#define LLVM_DEBUGINFO_SYMBOLIZE_SYMBOLIZE_H
|
||||
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/DebugInfo/DIContext.h"
|
||||
@ -24,12 +24,10 @@
|
||||
#include <string>
|
||||
|
||||
namespace llvm {
|
||||
|
||||
typedef DILineInfoSpecifier::FunctionNameKind FunctionNameKind;
|
||||
using namespace object;
|
||||
|
||||
namespace symbolize {
|
||||
|
||||
using namespace object;
|
||||
using FunctionNameKind = DILineInfoSpecifier::FunctionNameKind;
|
||||
class ModuleInfo;
|
||||
|
||||
class LLVMSymbolizer {
|
@ -1,4 +1,3 @@
|
||||
|
||||
add_subdirectory(DWARF)
|
||||
add_subdirectory(PDB)
|
||||
|
||||
add_subdirectory(Symbolize)
|
||||
|
@ -16,7 +16,7 @@
|
||||
;===------------------------------------------------------------------------===;
|
||||
|
||||
[common]
|
||||
subdirectories = DWARF PDB
|
||||
subdirectories = DWARF PDB Symbolize
|
||||
|
||||
[component_0]
|
||||
type = Group
|
||||
|
@ -10,6 +10,6 @@ LEVEL = ../..
|
||||
|
||||
include $(LEVEL)/Makefile.config
|
||||
|
||||
PARALLEL_DIRS := DWARF PDB
|
||||
PARALLEL_DIRS := DWARF PDB Symbolize
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
||||
include $(LEVEL)/Makefile.common
|
||||
|
6
lib/DebugInfo/Symbolize/CMakeLists.txt
Normal file
6
lib/DebugInfo/Symbolize/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
add_llvm_library(LLVMSymbolize
|
||||
Symbolize.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLVM_MAIN_INCLUDE_DIR}/llvm/DebugInfo/Symbolize
|
||||
)
|
22
lib/DebugInfo/Symbolize/LLVMBuild.txt
Normal file
22
lib/DebugInfo/Symbolize/LLVMBuild.txt
Normal file
@ -0,0 +1,22 @@
|
||||
;===- ./lib/DebugInfo/Symbolize/LLVMBuild.txt ------------------*- Conf -*--===;
|
||||
;
|
||||
; The LLVM Compiler Infrastructure
|
||||
;
|
||||
; This file is distributed under the University of Illinois Open Source
|
||||
; License. See LICENSE.TXT for details.
|
||||
;
|
||||
;===------------------------------------------------------------------------===;
|
||||
;
|
||||
; This is an LLVMBuild description file for the components in this subdirectory.
|
||||
;
|
||||
; For more information on the LLVMBuild system, please see:
|
||||
;
|
||||
; http://llvm.org/docs/LLVMBuild.html
|
||||
;
|
||||
;===------------------------------------------------------------------------===;
|
||||
|
||||
[component_0]
|
||||
type = Library
|
||||
name = Symbolize
|
||||
parent = DebugInfo
|
||||
required_libraries = DebugInfoDWARF DebugInfoPDB Object Support
|
15
lib/DebugInfo/Symbolize/Makefile
Normal file
15
lib/DebugInfo/Symbolize/Makefile
Normal file
@ -0,0 +1,15 @@
|
||||
##===- lib/DebugInfo/Symbolize/Makefile --------------------*- Makefile -*-===##
|
||||
#
|
||||
# The LLVM Compiler Infrastructure
|
||||
#
|
||||
# This file is distributed under the University of Illinois Open Source
|
||||
# License. See LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
LEVEL = ../../..
|
||||
LIBRARYNAME = LLVMSymbolize
|
||||
BUILD_ARCHIVE := 1
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
||||
|
@ -11,7 +11,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "LLVMSymbolize.h"
|
||||
#include "llvm/DebugInfo/Symbolize/Symbolize.h"
|
||||
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/Config/config.h"
|
||||
#include "llvm/DebugInfo/DWARF/DWARFContext.h"
|
||||
@ -45,6 +46,7 @@
|
||||
namespace llvm {
|
||||
namespace symbolize {
|
||||
|
||||
// FIXME: Move this to llvm-symbolizer tool.
|
||||
static bool error(std::error_code ec) {
|
||||
if (!ec)
|
||||
return false;
|
@ -8,9 +8,9 @@ set(LLVM_LINK_COMPONENTS
|
||||
DebugInfoPDB
|
||||
Object
|
||||
Support
|
||||
Symbolize
|
||||
)
|
||||
|
||||
add_llvm_tool(llvm-symbolizer
|
||||
LLVMSymbolize.cpp
|
||||
llvm-symbolizer.cpp
|
||||
)
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
LEVEL := ../..
|
||||
TOOLNAME := llvm-symbolizer
|
||||
LINK_COMPONENTS := DebugInfoDWARF DebugInfoPDB Object
|
||||
LINK_COMPONENTS := DebugInfoDWARF DebugInfoPDB Object Support Symbolize
|
||||
|
||||
# This tool has no plugins, optimize startup time.
|
||||
TOOL_NO_EXPORTS := 1
|
||||
|
@ -15,8 +15,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "LLVMSymbolize.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/DebugInfo/Symbolize/Symbolize.h"
|
||||
#include "llvm/Support/COM.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
|
Loading…
Reference in New Issue
Block a user