Pls review,
the test case uses a shell script as the parsing is a bit more involved,
I hope that is ok??
thx
Alex
Index: test/CodeGenCXX/debug-info-member-access.cpp
===================================================================
--- test/CodeGenCXX/debug-info-member-access.cpp (revision 0)
+++ test/CodeGenCXX/debug-info-member-access.cpp (revision 0)
@@ -0,0 +1,14 @@
+// RUN: %clang -S -emit-llvm -g -O0 %s -o ./Output/tmp.s
+// RUN: ./debug-info-member-fun-access.sh ./Output/tmp.s
+
+class SomeClass
+{
+ protected:
+ void Protected_Fun(){}
+ private:
+ void Private_Fun(){}
+ public:
+ void Public_Fun(){}
+};
+
+SomeClass sc;
Property changes on: test/CodeGenCXX/debug-info-member-access.cpp
___________________________________________________________________
Added: svn:eol-style
+ native
Index: test/CodeGenCXX/debug-info-member-fun-access.sh
===================================================================
--- test/CodeGenCXX/debug-info-member-fun-access.sh (revision 0)
+++ test/CodeGenCXX/debug-info-member-fun-access.sh (revision 0)
@@ -0,0 +1,2 @@
+MD_ENTRY=`grep DW_TAG_subroutine_type $1 | grep '!\([0-9]*\).*{.*, i32 1, null,.*}' | sed -E "s/.([0-9]*).*\{.*\} ; \[.*\]/\\1/"`
+grep DW_TAG_subprogram $1 | grep '.*_ZN9SomeClass11Private_FunEv\", metadata ![0-9]*, i32 [0-9]*, metadata !'$MD_ENTRY''
Property changes on: test/CodeGenCXX/debug-info-member-fun-access.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:eol-style
+ native
Index: lib/CodeGen/CGDebugInfo.cpp
===================================================================
--- lib/CodeGen/CGDebugInfo.cpp (revision 112466)
+++ lib/CodeGen/CGDebugInfo.cpp (working copy)
@@ -643,7 +643,7 @@
return
DebugFactory.CreateCompositeType(llvm::dwarf::DW_TAG_subroutine_type,
Unit, "", Unit,
- 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, BFlags,
llvm::DIType(), EltTypeArray);
}
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits