[PATCH] API support for files in a module.

(sending to lldb-dev as per the reply to someone else asking where lldb
patches should go - let me know if that's not still the case).

These patches enable a client to retrieve the list of files belonging to
a module using the API. I wasn't sure if FindSupportFileIndex() should take
a starting index, but since other class methods did, I stuck with that theme.
I didn't need the starting index, so I'd happily remove it if folks prefer.

Commit comment:
GetSupportFileAtIndex(), GetNumSupportFiles(), FindSupportFileIndex():
    Add API support for getting the list of files in a compilation unit.
GetNumCompileUnits(), GetCompileUnitAtIndex():
    Add API support for retrieving the compilation units in a module.

Please review and commit.

Thank you!
-Dawn

lldb_modfiles.diff (3.44 KB)

Hi Dawn,

I'll integrate your patch into ToT later.
Thanks.

Patch applied. Thanks!

URL: http://llvm.org/viewvc/llvm-project?rev=152942&view=rev
Log:
Patch from dawn@burble.org:

GetSupportFileAtIndex(), GetNumSupportFiles(), FindSupportFileIndex():
Add API support for getting the list of files in a compilation unit.
GetNumCompileUnits(), GetCompileUnitAtIndex():
Add API support for retrieving the compilation units in a module.

Modified:
lldb/trunk/include/lldb/API/SBCompileUnit.h
lldb/trunk/include/lldb/API/SBModule.h
lldb/trunk/source/API/SBCompileUnit.cpp
lldb/trunk/source/API/SBModule.cpp