| Index: lib/Bitcode/NaCl/Analysis/NaClCompressBlockDist.cpp
|
| diff --git a/lib/Bitcode/NaCl/Analysis/NaClCompressBlockDist.cpp b/lib/Bitcode/NaCl/Analysis/NaClCompressBlockDist.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..32694feac7ab3c2a3b261c68d5028c38b54e6340
|
| --- /dev/null
|
| +++ b/lib/Bitcode/NaCl/Analysis/NaClCompressBlockDist.cpp
|
| @@ -0,0 +1,28 @@
|
| +//===-- NaClCompressBlockDist.cpp --------------------------------------------===//
|
| +// Implements distribution maps used to collect block and record
|
| +// distributions for tool pnacl-bccompress.
|
| +//
|
| +// The LLVM Compiler Infrastructure
|
| +//
|
| +// This file is distributed under the University of Illinois Open Source
|
| +// License. See LICENSE.TXT for details.
|
| +//
|
| +//===----------------------------------------------------------------------===//
|
| +
|
| +#include "llvm/Bitcode/NaCl/NaClCompressBlockDist.h"
|
| +
|
| +using namespace llvm;
|
| +
|
| +NaClCompressBlockDistElement::~NaClCompressBlockDistElement() {}
|
| +
|
| +NaClBitcodeDistElement* NaClCompressBlockDistElement::
|
| +CreateElement(NaClBitcodeDistValue Value) const {
|
| + return new NaClCompressBlockDistElement(Value);
|
| +}
|
| +
|
| +const SmallVectorImpl<NaClBitcodeDist*> *NaClCompressBlockDistElement::
|
| +GetNestedDistributions() const {
|
| + return &NestedDists;
|
| +}
|
| +
|
| +NaClCompressBlockDistElement NaClCompressBlockDistElement::Sentinel;
|
|
|