Change allowsUnalignedMemoryAccesses to take type argument since some targets
[llvm/avr.git] / lib / VMCore / ModuleProvider.cpp
blobcfff97c237f9f8bb9bc816b2cbe320bc51a7f435
1 //===-- ModuleProvider.cpp - Base implementation for module providers -----===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // Minimal implementation of the abstract interface for providing a module.
12 //===----------------------------------------------------------------------===//
14 #include "llvm/ModuleProvider.h"
15 #include "llvm/Module.h"
16 using namespace llvm;
18 /// ctor - always have a valid Module
19 ///
20 ModuleProvider::ModuleProvider() : TheModule(0) { }
22 /// dtor - when we leave, we take our Module with us
23 ///
24 ModuleProvider::~ModuleProvider() {
25 delete TheModule;