80ea31b24e
Summary: Write the .debug_aranges section after optimizations to the output binary. Each function generates at least one range and at most two (one extra for its cold part). The writing is done manually because LLVM's implementation is tied to the output of .debug_info (see EmitGenDwarfInfo and EmitGenDwarfARanges in lib/MC/MCDwarf.cpp), which we don't want to trigger right now. (cherry picked from FBD3043108)
25 lines
368 B
CMake
25 lines
368 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
${LLVM_TARGETS_TO_BUILD}
|
|
CodeGen
|
|
Core
|
|
DebugInfoDWARF
|
|
MC
|
|
MCDisassembler
|
|
MCParser
|
|
Object
|
|
Orcjit
|
|
Support
|
|
)
|
|
|
|
add_llvm_tool(llvm-bolt
|
|
llvm-bolt.cpp
|
|
BinaryBasicBlock.cpp
|
|
BinaryContext.cpp
|
|
BinaryFunction.cpp
|
|
DataReader.cpp
|
|
DebugArangesWriter.cpp
|
|
DebugLineTableRowRef.cpp
|
|
Exceptions.cpp
|
|
RewriteInstance.cpp
|
|
)
|