mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
DebugInfo: GDBIndexEntry*String conversion functions now return const char* for easy llvm::formating
This was previously invoking UB by passing a user-defined type to format. Thanks to Jordan Rose for pointing this out. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191060 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
#define LLVM_SUPPORT_DWARF_H
|
||||
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
@@ -803,14 +802,14 @@ enum GDBIndexEntryKind {
|
||||
GIEK_UNUSED7
|
||||
};
|
||||
|
||||
StringRef GDBIndexEntryKindString(GDBIndexEntryKind Kind);
|
||||
const char *GDBIndexEntryKindString(GDBIndexEntryKind Kind);
|
||||
|
||||
enum GDBIndexEntryLinkage {
|
||||
GIEL_EXTERNAL,
|
||||
GIEL_STATIC
|
||||
};
|
||||
|
||||
StringRef GDBIndexEntryLinkageString(GDBIndexEntryLinkage Linkage);
|
||||
const char *GDBIndexEntryLinkageString(GDBIndexEntryLinkage Linkage);
|
||||
|
||||
/// The gnu_pub* kind looks like:
|
||||
///
|
||||
|
Reference in New Issue
Block a user