Closed langston-barrett closed 5 years ago
To answer your questions:
String
now. The format of the metadata has changed a lot over the years, so this being optional could be to satisfy an older format.For (2), I was thinking just the reverse, actually: that diieName
is currently a String
but perhaps it should be a Maybe String
. I'll take a look at the textual output and see if there are any empty strings in that field.
I think there is another issue at the root of this problem.
The definition of
DIImportedEntity
contains a non-nullableString
field,diieName
.I'm reading a bitcode file that has a lot of
IMPORTED_ENTITY
declarations with a 5th field of value 0, e.g.:In the official C++ parser, this name is obtained with the function
getMDString
. However, in other locations where the official parser usesgetMDString
, you provide aMaybe String
, for instance in the parsing ofDIGlobalVariable
(c++, hs).So, two questions:
Maybe
?DIImportedEntity
correct, or shoulddiieName
be aMaybe String
?