]> granicus.if.org Git - clang/commitdiff
Remove CharUnits::toString() to eliminate dependence on <string>.
authorKen Dyck <ken.dyck@onsemi.com>
Wed, 23 Dec 2009 02:44:11 +0000 (02:44 +0000)
committerKen Dyck <ken.dyck@onsemi.com>
Wed, 23 Dec 2009 02:44:11 +0000 (02:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91978 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/CharUnits.h
lib/AST/CMakeLists.txt
lib/AST/CharUnits.cpp [deleted file]

index c0290765b6eb53dde2a8bf83f8b3612ec47e8288..7b2833c53ffa5a17096c0750cc347fd1b7f5606b 100644 (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; }
 
index 98880b5f77d2f4bf9d3449ef80aab7e9c164f2dc..5aecf878c920b7d62fc14754c0de8c40fda06124 100644 (file)
@@ -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 (file)
index 30935d0..0000000
+++ /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);
-}