
This diff changes the serialization of the `SUBMODULE_TOPHEADER` entry in module files to be serialized relative to the module's `BaseDirectory`. This matches the behavior of the `SUBMODULE_HEADER` entry and will allow for the module to be relocatable across machines. The path is restored relative to the module's `BaseDirectory` on deserialization. Reviewed By: urnathan Differential Revision: https://reviews.llvm.org/D124938
11 lines
641 B
Matlab
11 lines
641 B
Matlab
// RUN: cd %S
|
|
// RUN: %clang_cc1 -fmodules -fno-implicit-modules -x objective-c++ -fmodule-name=std -emit-module Inputs/submodules/module.map -o %t/mod.pcm
|
|
// RUN: llvm-bcanalyzer --dump --disable-histogram %t/mod.pcm | FileCheck %s
|
|
|
|
// CHECK: <SUBMODULE_HEADER abbrevid=6/> blob data = 'vector.h'
|
|
// CHECK: <SUBMODULE_TOPHEADER abbrevid=7/> blob data = 'vector.h'
|
|
// CHECK: <SUBMODULE_HEADER abbrevid=6/> blob data = 'type_traits.h'
|
|
// CHECK: <SUBMODULE_TOPHEADER abbrevid=7/> blob data = 'type_traits.h'
|
|
// CHECK: <SUBMODULE_HEADER abbrevid=6/> blob data = 'hash_map.h'
|
|
// CHECK: <SUBMODULE_TOPHEADER abbrevid=7/> blob data = 'hash_map.h'
|