[IRGen] Eliminate calls to SILLocation() from IRGen.

Here, the location information does not have to always be available. Use Optional instead of creating an empty location.

Swift SVN r8055
This commit is contained in:
Anna Zaks
2013-09-09 22:34:01 +00:00
parent fbc682442a
commit e36839ca8a
7 changed files with 20 additions and 12 deletions

View File

@@ -32,7 +32,7 @@ IRGenFunction::IRGenFunction(IRGenModule &IGM,
ExplosionKind explosionLevel,
llvm::Function *Fn,
SILDebugScope *DbgScope,
SILLocation DbgLoc)
Optional<SILLocation> DbgLoc)
: IGM(IGM), Builder(IGM.getLLVMContext()),
CurFn(Fn), CurExplosionLevel(explosionLevel),
ContextPtr(nullptr) {