HomePhabricator

[ODRHash] Skip some typedef types.

Authored by rtrieu on Jun 21 2019, 5:32 PM.

Description

[ODRHash] Skip some typedef types.

In some cases, a typedef only strips aways a keyword for a type, keeping the
same name as the root record type. This causes some confusion when the type
is defined in one modules but only forward declared in another. Skipping the
typedef and going straight to the record will avoid this issue.

typedef struct S {} S;
S* s; // S is TypedefType here

struct S;
S* s; // S is RecordType here

llvm-svn: 364119

Details

Committed
rtrieuJun 21 2019, 5:32 PM
Parents
rG0eb966c8248b: [llvm-objdump] Move --start-address >= --stop-address check out of the -d code.
Branches
Unknown
Tags
Unknown