summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2018-05-29 14:35:34 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2018-05-29 14:35:34 +0000
commit43dce3edbe237d5e07d44e27ef22e91ca23ff2a1 (patch)
tree8eb615e05d5794f43720905417a30f14e430c68c /llvm/lib/DebugInfo
parentef0f7496d17409cf5cee863746bed09a2356e409 (diff)
downloadbcm5719-llvm-43dce3edbe237d5e07d44e27ef22e91ca23ff2a1.tar.gz
bcm5719-llvm-43dce3edbe237d5e07d44e27ef22e91ca23ff2a1.zip
[CodeView] Add prefix to CodeView registers.
Adds CVReg to CodeView register names to prevent a duplicate symbol with CR3 defined in termios.h, as suggested by Zachary on the mailing list. http://lists.llvm.org/pipermail/llvm-dev/2018-May/123372.html Differential revision: https://reviews.llvm.org/D47478 rdar://39863705 llvm-svn: 333421
Diffstat (limited to 'llvm/lib/DebugInfo')
-rw-r--r--llvm/lib/DebugInfo/PDB/Native/NativeRawSymbol.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Native/NativeRawSymbol.cpp b/llvm/lib/DebugInfo/PDB/Native/NativeRawSymbol.cpp
index fbe334823e0..a4b02959631 100644
--- a/llvm/lib/DebugInfo/PDB/Native/NativeRawSymbol.cpp
+++ b/llvm/lib/DebugInfo/PDB/Native/NativeRawSymbol.cpp
@@ -188,7 +188,7 @@ uint32_t NativeRawSymbol::getLiveRangeStartRelativeVirtualAddress() const {
}
codeview::RegisterId NativeRawSymbol::getLocalBasePointerRegisterId() const {
- return codeview::RegisterId::EAX;
+ return codeview::RegisterId::CVRegEAX;
}
uint32_t NativeRawSymbol::getLowerBoundId() const {
@@ -248,7 +248,7 @@ uint32_t NativeRawSymbol::getRank() const {
}
codeview::RegisterId NativeRawSymbol::getRegisterId() const {
- return codeview::RegisterId::EAX;
+ return codeview::RegisterId::CVRegEAX;
}
uint32_t NativeRawSymbol::getRegisterType() const {
OpenPOWER on IntegriCloud