OLD | NEW |
(Empty) | |
| 1 //===-- NaClCompressBlockDist.cpp --------------------------------------------==
=// |
| 2 // Implements distribution maps used to collect block and record |
| 3 // distributions for tool pnacl-bccompress. |
| 4 // |
| 5 // The LLVM Compiler Infrastructure |
| 6 // |
| 7 // This file is distributed under the University of Illinois Open Source |
| 8 // License. See LICENSE.TXT for details. |
| 9 // |
| 10 //===----------------------------------------------------------------------===// |
| 11 |
| 12 #include "llvm/Bitcode/NaCl/NaClCompressBlockDist.h" |
| 13 |
| 14 using namespace llvm; |
| 15 |
| 16 NaClCompressBlockDistElement::~NaClCompressBlockDistElement() {} |
| 17 |
| 18 NaClBitcodeDistElement* NaClCompressBlockDistElement:: |
| 19 CreateElement(NaClBitcodeDistValue Value) const { |
| 20 return new NaClCompressBlockDistElement(Value); |
| 21 } |
| 22 |
| 23 const SmallVectorImpl<NaClBitcodeDist*> *NaClCompressBlockDistElement:: |
| 24 GetNestedDistributions() const { |
| 25 return &NestedDists; |
| 26 } |
| 27 |
| 28 NaClCompressBlockDistElement NaClCompressBlockDistElement::Sentinel; |
OLD | NEW |