[Lldb-commits] [lldb] r319869 - Do not use default arguments of DataLayout::getPointer*. NFC

Fangrui Song via lldb-commits lldb-commits at lists.llvm.org
Tue Dec 5 17:32:06 PST 2017


Author: maskray
Date: Tue Dec  5 17:32:06 2017
New Revision: 319869

URL: http://llvm.org/viewvc/llvm-project?rev=319869&view=rev
Log:
Do not use default arguments of DataLayout::getPointer*. NFC

Summary: There are "FIXME"s in include/llvm/IR/DataLayout.h to remove the default arguments.

Reviewers: zturner, clayborg

Reviewed By: zturner

Subscribers: bjope

Differential Revision: https://reviews.llvm.org/D40064

Modified:
    lldb/trunk/source/Expression/IRInterpreter.cpp

Modified: lldb/trunk/source/Expression/IRInterpreter.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/IRInterpreter.cpp?rev=319869&r1=319868&r2=319869&view=diff
==============================================================================
--- lldb/trunk/source/Expression/IRInterpreter.cpp (original)
+++ lldb/trunk/source/Expression/IRInterpreter.cpp Tue Dec  5 17:32:06 2017
@@ -385,11 +385,6 @@ public:
     return ret;
   }
 
-  lldb::addr_t MallocPointer() {
-    return Malloc(m_target_data.getPointerSize(),
-                  m_target_data.getPointerPrefAlignment());
-  }
-
   lldb::addr_t Malloc(llvm::Type *type) {
     lldb_private::Status alloc_error;
 




More information about the lldb-commits mailing list