summaryrefslogtreecommitdiffstats
path: root/unittests
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-10-29 16:32:19 +0000
committerAlexey Samsonov <samsonov@google.com>2013-10-29 16:32:19 +0000
commit636a5cb8ded0d6ab7051cbde98953039ef80a6bb (patch)
tree717b9edc5af9be295d6bb59cb9028c9c292d3d37 /unittests
parenta300b1cc29020b7dfaf7bfe443d38af8fbec7433 (diff)
downloadexternal_llvm-636a5cb8ded0d6ab7051cbde98953039ef80a6bb.zip
external_llvm-636a5cb8ded0d6ab7051cbde98953039ef80a6bb.tar.gz
external_llvm-636a5cb8ded0d6ab7051cbde98953039ef80a6bb.tar.bz2
DWARF parser: propery handle DW_FORM_ref_sig8 and fix Windows build.
Based on D2050 by Timur Iskhodzhanov. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193619 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/DebugInfo/DWARFFormValueTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/unittests/DebugInfo/DWARFFormValueTest.cpp b/unittests/DebugInfo/DWARFFormValueTest.cpp
index 36cbae2..38b932e 100644
--- a/unittests/DebugInfo/DWARFFormValueTest.cpp
+++ b/unittests/DebugInfo/DWARFFormValueTest.cpp
@@ -43,6 +43,7 @@ TEST(DWARFFormValue, FormClass) {
EXPECT_TRUE(isFormClass(DW_FORM_GNU_addr_index, DWARFFormValue::FC_Address));
EXPECT_FALSE(isFormClass(DW_FORM_ref_addr, DWARFFormValue::FC_Address));
EXPECT_TRUE(isFormClass(DW_FORM_ref_addr, DWARFFormValue::FC_Reference));
+ EXPECT_TRUE(isFormClass(DW_FORM_ref_sig8, DWARFFormValue::FC_Reference));
}
} // end anonymous namespace