mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 01:36:04 +00:00

These constructs are only applicable to a debugger capable of loading a Clang AST, so omit them for brevity when not doing so. We could potentially propagate more of CodeGenOptions through the ObjectFilePCGContainerOperations for consistency (so the next person who adds some CodeGenOpts feature that tweaks debug info output doesn't get caught by this), so I'm open to objections/alternatives there, but went with this for now. Tested just a couple of basic cases (one direct, one indirect (through the ObjectFilePCHContainerOperations) & fixed up other cases to pass the -debugger-tuning flag as appropriate. llvm-svn: 268460
10 lines
329 B
C++
10 lines
329 B
C++
// RUN: %clang_cc1 -I %S/Inputs/getSourceDescriptor-crash -S -emit-llvm -debug-info-kind=limited -debugger-tuning=lldb -fimplicit-module-maps %s -o - | FileCheck %s
|
|
|
|
#include "h1.h"
|
|
#include "h1.h"
|
|
|
|
// CHECK: DIImportedEntity
|
|
// CHECK-SAME: entity: ![[ENTITY:[0-9]+]]
|
|
// CHECK: ![[ENTITY]] = !DIModule
|
|
// CHECK-SAME: name: "foo"
|