mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Pass around arguments for primary-specific filenames.
Get rid of IRGenOpts attributes that won’t work for batch mode and also remove fakeNamesStub.
This commit is contained in:
@@ -53,6 +53,16 @@ std::string CompilerInvocation::getPCHHash() const {
|
||||
return llvm::APInt(64, Code).toString(36, /*Signed=*/false);
|
||||
}
|
||||
|
||||
PrimarySpecificPaths
|
||||
CompilerInvocation::getPrimarySpecificPathsForAtMostOnePrimary() {
|
||||
return getFrontendOptions().getPrimarySpecificPathsForAtMostOnePrimary();
|
||||
}
|
||||
|
||||
PrimarySpecificPaths
|
||||
CompilerInvocation::getPrimarySpecificPathsForPrimary(StringRef filename) {
|
||||
return getFrontendOptions().getPrimarySpecificPathsForPrimary(filename);
|
||||
}
|
||||
|
||||
void CompilerInstance::createSILModule() {
|
||||
assert(MainModule && "main module not created yet");
|
||||
// Assume WMO if a -primary-file option was not provided.
|
||||
@@ -825,3 +835,16 @@ void CompilerInstance::freeASTContext() {
|
||||
}
|
||||
|
||||
void CompilerInstance::freeSILModule() { TheSILModule.reset(); }
|
||||
|
||||
PrimarySpecificPaths
|
||||
CompilerInstance::getPrimarySpecificPathsForWholeModuleOptimizationMode() {
|
||||
return getPrimarySpecificPathsForAtMostOnePrimary();
|
||||
}
|
||||
PrimarySpecificPaths
|
||||
CompilerInstance::getPrimarySpecificPathsForAtMostOnePrimary() {
|
||||
return Invocation.getPrimarySpecificPathsForAtMostOnePrimary();
|
||||
}
|
||||
PrimarySpecificPaths
|
||||
CompilerInstance::getPrimarySpecificPathsForPrimary(StringRef filename) {
|
||||
return Invocation.getPrimarySpecificPathsForPrimary(filename);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user