Commit 6b47f50
committed
Use -fmacro-prefix-map for annot unit path in bc
Clang emits source unit path with every annotation in llvm.metadata
section in bitcode.
For example, for every stdlib function annotated with
`__attribute__((annotate("introduced_in=XXX")))` bitcode will
contain a path to the unit the function was declared in.
In order to make bitcode builds reproducible, these paths should be
normalized just like `__FILE__` macro paths are.
This commit reuses `-fmacro-prefix-map` machinery for annotation
paths in bitcode.1 parent fb492d2 commit 6b47f50
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3311 | 3311 | | |
3312 | 3312 | | |
3313 | 3313 | | |
3314 | | - | |
3315 | | - | |
3316 | | - | |
| 3314 | + | |
| 3315 | + | |
| 3316 | + | |
| 3317 | + | |
3317 | 3318 | | |
3318 | 3319 | | |
3319 | 3320 | | |
| |||
0 commit comments