LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ModuleProvider.cpp

Go to the documentation of this file.
00001 //===-- ModuleProvider.cpp - Base implementation for module providers -----===//
00002 // 
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file was developed by the LLVM research group and is distributed under
00006 // the University of Illinois Open Source License. See LICENSE.TXT for details.
00007 // 
00008 //===----------------------------------------------------------------------===//
00009 //
00010 // Minimal implementation of the abstract interface for providing a module.
00011 //
00012 //===----------------------------------------------------------------------===//
00013 
00014 #include "llvm/ModuleProvider.h"
00015 #include "llvm/Module.h"
00016 using namespace llvm;
00017 
00018 /// ctor - always have a valid Module
00019 ///
00020 ModuleProvider::ModuleProvider() : TheModule(0) { }
00021 
00022 /// dtor - when we leave, we take our Module with us
00023 ///
00024 ModuleProvider::~ModuleProvider() {
00025   delete TheModule;
00026 }