File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -325,12 +325,9 @@ static void writeImports(raw_ostream &out,
325
325
const clang::Module *module ) {
326
326
auto startIdx = allPaths.size ();
327
327
if (module ->IsFramework ) {
328
- SmallString<64 > Buffer (header.NameAsWritten );
329
- llvm::sys::path::replace_path_prefix (Buffer, " Headers/" , StringRef ());
330
- llvm::sys::path::replace_path_prefix (Buffer, " PrivateHeaders/" , StringRef ());
331
328
// For framworks, the header import should start from the framework name.
332
329
allPaths.append (module ->getTopLevelModuleName ());
333
- llvm::sys::path::append (allPaths, Buffer. str () );
330
+ llvm::sys::path::append (allPaths, header. NameAsWritten );
334
331
} else {
335
332
// Otherwise, import the header directly.
336
333
allPaths.append (header.NameAsWritten );
You can’t perform that action at this time.
0 commit comments