mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-03 03:11:27 +00:00
[DebugInfo] Fix build failed in clang-x86_64-linux-selfhost-modules.
Only generate symbol difference expression if needed. llvm-svn: 338484
This commit is contained in:
parent
36432a70c1
commit
2089e4c8f1
@ -954,7 +954,13 @@ bool MCAssembler::relaxDwarfLineAddr(MCAsmLayout &Layout,
|
||||
MCContext &Context = Layout.getAssembler().getContext();
|
||||
uint64_t OldSize = DF.getContents().size();
|
||||
int64_t AddrDelta;
|
||||
bool Abs = DF.getAddrDelta().evaluateAsAbsolute(AddrDelta, Layout);
|
||||
bool Abs;
|
||||
if (getBackend().requiresDiffExpressionRelocations())
|
||||
Abs = DF.getAddrDelta().evaluateAsAbsolute(AddrDelta, Layout);
|
||||
else {
|
||||
Abs = DF.getAddrDelta().evaluateKnownAbsolute(AddrDelta, Layout);
|
||||
assert(Abs && "We created a line delta with an invalid expression");
|
||||
}
|
||||
int64_t LineDelta;
|
||||
LineDelta = DF.getLineDelta();
|
||||
SmallVectorImpl<char> &Data = DF.getContents();
|
||||
|
Loading…
Reference in New Issue
Block a user