OSDN Git Service

[PDB] Enable NativeSession to create symbols for built-in types on demand
authorAdrian McCarthy <amccarth@google.com>
Wed, 12 Jul 2017 19:38:11 +0000 (19:38 +0000)
committerAdrian McCarthy <amccarth@google.com>
Wed, 12 Jul 2017 19:38:11 +0000 (19:38 +0000)
commit39bfdfaa9425b7daefd8f21d2aa300570b6f093f
tree50edc8073dab9f32b862c2201714e19606c6ec7f
parentfa1648c50102639f5e8ed10cab3e4506aa3234e9
[PDB] Enable NativeSession to create symbols for built-in types on demand

Summary:
There is a reserved range of type indexes for built-in types (like integers).
This will create a symbol for a built-in type if the caller askes for one by
type index.  This is also plumbing for being able to recall symbols by type
index in general, but user-defined types will come in subsequent patches.

Reviewers: rnk, zturner

Subscribers: mgorny, hiraditya, llvm-commits

Differential Revision: https://reviews.llvm.org/D35163

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307834 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/llvm/DebugInfo/CodeView/TypeIndex.h
include/llvm/DebugInfo/PDB/Native/NativeBuiltinSymbol.h [new file with mode: 0644]
include/llvm/DebugInfo/PDB/Native/NativeCompilandSymbol.h
include/llvm/DebugInfo/PDB/Native/NativeExeSymbol.h
include/llvm/DebugInfo/PDB/Native/NativeRawSymbol.h
include/llvm/DebugInfo/PDB/Native/NativeSession.h
lib/DebugInfo/PDB/CMakeLists.txt
lib/DebugInfo/PDB/Native/NativeBuiltinSymbol.cpp [new file with mode: 0644]
lib/DebugInfo/PDB/Native/NativeCompilandSymbol.cpp
lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp
lib/DebugInfo/PDB/Native/NativeRawSymbol.cpp
lib/DebugInfo/PDB/Native/NativeSession.cpp