forked from OSchip/llvm-project
Remove CharUnits::toString() to eliminate dependence on <string>.
llvm-svn: 91978
This commit is contained in:
parent
02e07737a9
commit
73536eab67
|
@ -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; }
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@ add_clang_library(clangAST
|
|||
ASTConsumer.cpp
|
||||
ASTContext.cpp
|
||||
CXXInheritance.cpp
|
||||
CharUnits.cpp
|
||||
Decl.cpp
|
||||
DeclBase.cpp
|
||||
DeclCXX.cpp
|
||||
|
|
|
@ -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);
|
||||
}
|
Loading…
Reference in New Issue