summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/CharUnits.cpp
blob: 30935d038530a0ce0afad8e2571656251bdec82c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//===--- CharUnits.cpp - Character units for sizes and offsets ------------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
//  This file implements the CharUnits class.
//
//===----------------------------------------------------------------------===//

#include "clang/AST/CharUnits.h"
#include "llvm/ADT/StringExtras.h"
using namespace clang;

std::string CharUnits::toString() const {
  return llvm::itostr(Quantity);
}
OpenPOWER on IntegriCloud