From: Ken Dyck Date: Wed, 23 Dec 2009 02:44:11 +0000 (+0000) Subject: Remove CharUnits::toString() to eliminate dependence on . X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=775f2eb49116baeb0c97d2085fac30174e2ebd43;p=clang Remove CharUnits::toString() to eliminate dependence on . git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91978 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/CharUnits.h b/include/clang/AST/CharUnits.h index c0290765b6..7b2833c53f 100644 --- a/include/clang/AST/CharUnits.h +++ b/include/clang/AST/CharUnits.h @@ -16,8 +16,6 @@ #include "llvm/System/DataTypes.h" -#include - 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; } diff --git a/lib/AST/CMakeLists.txt b/lib/AST/CMakeLists.txt index 98880b5f77..5aecf878c9 100644 --- a/lib/AST/CMakeLists.txt +++ b/lib/AST/CMakeLists.txt @@ -5,7 +5,6 @@ add_clang_library(clangAST ASTConsumer.cpp ASTContext.cpp CXXInheritance.cpp - CharUnits.cpp Decl.cpp DeclBase.cpp DeclCXX.cpp diff --git a/lib/AST/CharUnits.cpp b/lib/AST/CharUnits.cpp deleted file mode 100644 index 30935d0385..0000000000 --- a/lib/AST/CharUnits.cpp +++ /dev/null @@ -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); -}