mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
Introduce two DWARF attribute extentions DW_AT_APPLE_optimized, DW_AT_APPLE_flags.
DW_AT_APPLE_optimized flag is set when a compile_unit is optimized. The debugger takes advantage of this information some way. DW_AT_APPLE_flags encodes command line options when certain env. variable is set. This is used by build engineers to track various gcc command lines used by by a project, irrespective of whether the project used makefile, Xcode or something else. llvm-gcc patch is next. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62888 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -109,6 +109,8 @@ namespace llvm {
|
||||
std::string getFilename() const { return getStringField(3); }
|
||||
std::string getDirectory() const { return getStringField(4); }
|
||||
std::string getProducer() const { return getStringField(5); }
|
||||
bool isOptimized() const { return getUnsignedField(6); }
|
||||
std::string getFlags() const { return getStringField(7); }
|
||||
|
||||
/// Verify - Verify that a compile unit is well formed.
|
||||
bool Verify() const;
|
||||
@@ -372,7 +374,9 @@ namespace llvm {
|
||||
DICompileUnit CreateCompileUnit(unsigned LangID,
|
||||
const std::string &Filename,
|
||||
const std::string &Directory,
|
||||
const std::string &Producer);
|
||||
const std::string &Producer,
|
||||
bool isOptimized = false,
|
||||
const char *Flags = "");
|
||||
|
||||
/// CreateEnumerator - Create a single enumerator value.
|
||||
DIEnumerator CreateEnumerator(const std::string &Name, uint64_t Val);
|
||||
|
||||
@@ -221,7 +221,11 @@ enum dwarf_constants {
|
||||
DW_AT_GNU_vector = 0x2107,
|
||||
DW_AT_lo_user = 0x2000,
|
||||
DW_AT_hi_user = 0x3fff,
|
||||
|
||||
|
||||
// Apple extensions.
|
||||
DW_AT_APPLE_optimized = 0x3fe1,
|
||||
DW_AT_APPLE_flags = 0x3fe2,
|
||||
|
||||
// Attribute form encodings
|
||||
DW_FORM_addr = 0x01,
|
||||
DW_FORM_block2 = 0x03,
|
||||
|
||||
Reference in New Issue
Block a user