Remove CharUnits::toString() to eliminate dependence on <string>.

llvm-svn: 91978
This commit is contained in:
Ken Dyck 2009-12-23 02:44:11 +00:00
parent 02e07737a9
commit 73536eab67
3 changed files with 0 additions and 26 deletions

View File

@ -16,8 +16,6 @@
#include "llvm/System/DataTypes.h"
#include <string>
namespace clang {
/// CharUnits - This is an opaque type for sizes expressed in character units.
@ -136,9 +134,6 @@ namespace clang {
// Conversions.
/// toString - Convert to a string.
std::string toString() const;
/// getRaw - Get the raw integer representation of this quantity.
RawType getRaw() const { return Quantity; }

View File

@ -5,7 +5,6 @@ add_clang_library(clangAST
ASTConsumer.cpp
ASTContext.cpp
CXXInheritance.cpp
CharUnits.cpp
Decl.cpp
DeclBase.cpp
DeclCXX.cpp

View File

@ -1,20 +0,0 @@
//===--- 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);
}