Files
swift-mirror/lib/SIL/SILFunction.cpp
Adrian Prantl de32b201d0 Debug Info: Add support for subprograms.
This means that single-stepping in lldb actually works now!

Swift SVN r5828
2013-06-27 00:46:30 +00:00

30 lines
1008 B
C++

//===--- SILFunction.cpp - Defines the SILFunction data structure ---------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.txt for license information
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
#include "swift/SIL/SILFunction.h"
#include "swift/SIL/SILModule.h"
using namespace swift;
SILFunction::SILFunction(SILModule &Module, SILLinkage Linkage,
StringRef Name, SILType LoweredType)
: ModuleAndLinkage(&Module, Linkage), MangledName(Name),
LoweredType(LoweredType), DebugScope(nullptr) {
Module.functions.push_back(this);
}
SILFunction::~SILFunction() {
}
ASTContext &SILFunction::getASTContext() const {
return getModule().getASTContext();
}